collective / collective.alias

3 stars 5 forks source link

Make canonical URL link to aliased object #5

Open khink opened 10 years ago

khink commented 10 years ago

For SEO, it might be useful to make the Canonical URL in the HEAD (<link rel="canonical" href="" />) point to the original item.

jaroel commented 10 years ago

AFAIK this is not a correct assumption because Content title, Display template and Portlets can be changed for the alias.

Maybe this should be made configurable on the alias? If so, please provide a test and preferably also an implementation ;)

Gagaro commented 9 years ago

I did it for the plone5 branch. It should be easy to backport if you want to: https://github.com/collective/collective.alias/commit/e855a7a6682404c1fab6de74ab1606d8e95afc6f