Developer forum

Forum » Ecommerce - Standard features » Canonical in Groups and Products

Canonical in Groups and Products

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

Fighting with canonical Urls here's what I found out using 9.4.18:

Ecommerce Groups

  • A Group has to have the Canonical field populated - otherwise it does not render a canonical meta tag. For consistency reasons, I was expecting to take the Group name if empty.
    (this seems like a bug/feature request)

 

Products

  • A Product's canonical only shows up if you have a primary group set
    Would be great if it worked with "PrimaryOrFirst" - since it makes it a lot easier when managing integration scenarios and also facilitates some of the customer's manual steps to properly set a product. 
    (feature request?)
     
  • The canonical always uses the group path of the primary group - sometimes that's not the intent
    In one of my current projects the requirement is for all products to live under /products/{products-url}
    Once we set the PrimaryGroup to trigger the canonical meta tag, it's generating the wrong URL
    What's the recommended way to implement this?

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Pedersen
Reply

Hi Nuno

Yes, but the possible scenarios and combinations are near endless. I have given up making this work with settings. It is super simple to do manually in the template and get exactly what you want. Usually canonicals are only needed in rare situations with a bad page/group/product structure... Remember - there is duplicate content how Google explains it and how some SEO experts (mis)understands it...

BR Nicolai

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Nicolai,

 

Yeah, I understand the complications around settings getting to work with the mystical world of SEO. I will make it work with templates.

 

As for canonicals per se, I've dug into it and Google recommends we apply self-referencing canonicals because it makes it explicit, rather than implicitly determining the "non-duplicate" by the absence of a canonical. That said I also have to determine if the URL being loaded is supposed to the be "original" or a duplicate.

 

Thanks,

Nuno Aguiar

 

You must be logged in to post in the forum