Forums / Developer / Url Alias question / Comment51488

Author Topic

Gaetano Giunta

Friday 17 July 2009 7:49:05 am

Comment51488

Why then don't you just publish your article at two locations?
This way you do not need to set up an url alias rule, and when you fetch the object in your code you can always get the url_alias of its main node.

As for crawlers that might dislike finding the object at two locations, I suspect it is an over-rated problem.
Here anyway http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html it says that you just need to add <link rel="canonical" ...> to your pages to tel elgoog that mant different urls refer to the same content. And you can add that to your page wheter you are using multi-location, url-alias or any other stuff.

Tip: to avoid fetching again the current node in the pagelayout to get the canonical url out of it, you might use the persistent_variable...

Principal Consultant International Business
Member of the Community Project Board