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:

  1. Cambiare radiobutton in Firefox
  2. BitComet 0.71

About The Author

No Comments

Leave A Reply