Magento: convert all wrong product links in their canonical equivalent.
Sometimes in magento product links are listed in the following mode:
catalog/product/view/id/3/s/product-name/category/3/
which can be very inconvenient from the SEO point of view. To solve this issue you can force a canonical form of product url in following mode:
In theme/template/catalog/product/list replace all instances of
$_product->getProductUrl()
with
Mage::getUrl($_product->getUrlKey())
Related posts:
No Comments