Canoncial tag magento issue

Laura Cioclea

Free Member
Oct 9, 2014
15
4
46
Technical question guys - hope you can help.

In our Magento store we have a product and the canonical tag of the page is:

<linkrel="canonical"href="....../product"/>

What we want to do is to make the canonical tag to be:

<linkrel="canonical"href=".......category/product"/>

Any way to fix that on Magento? Your help is greatly appreciated.
 
If you set:-

Use Canonical Link Meta Tag For Product = Yes

In the following location:-

System > Configuration > CATALOG - Catalog > Search Engine Optimizations

Then this will create canonical URL's for all products like 'domain.tld/product'. If you set it to 'No' then it will remove the canonical URL for products altogether. Subsequently, the only way to modify this globally (i.e without a design update on a per product basis) is to extend the Mage core.

There are a number of ways to do this based on your individual requirements and set up.

This would only ever be recommended if you are only ever going to add one product to one category and one category only in Magento, otherwise this can create numerous issues.
 
Upvote 0

Latest Articles