cancel
Showing results for 
Search instead for 
Did you mean: 

M2 Canonical Settings

M2 Canonical Settings

I would like all my products to have category paths included in the url as the preferred URL for indexing. Looking over the Magento Dev Docs I see the following

 

  1. If you want search engines to index only category pages using the full category path, do the following:

    • Set Use Canonical Link Meta Tag for Categories to “Yes”.

    • Set Use Canonical Link Meta Tag for Products to “No”.

When I do this and then create a new product (staging) and take a look at the source code of the page I see the canonical tag on my new product is pointing to the url without the category path in it, please see link here.

 

The expected outcome based on default magento settings and documentations would be that the tag would read:

<link rel="canonical  href="https://new.dcsgrills.com/dcs-collections/liberty-series-7/dcs-producto.html" />

Could someone confirm if this handling is correct of if a bug or flaw has been exposed, thank you in advance.

 

1 REPLY 1

Re: M2 Canonical Settings

Hi @luisjr87,

 

I saw you're using a 3rd-party theme.

Can you check what happens when you try with Luma? (just to be sure the problem isn't from a 3rd-party module or customization)