[Dev. Question] rel="canonical"

Queen Victoria


While enjoying a cup of coffee this morning, I was stepping through the source from forum.tribalwars.net. I noticed the use of rel="canonical" to provide a clean, canonical URL to search engines...

One question I had was about the use of relative URL here. I think this is the incorrect use. A canonical URL should be absolute. This:

<link rel="canonical" href="newthread.php" />

Should be this:

<link rel="canonical" href="http://forum.tribalwars.net/newthread.php" />

Otherwise it is not useful for the search engine. The whole purpose of "canonical" URL is to eliminate all confusion for the Search Engine.. Using relative URL here only adds more confusion hehe.

Check this discussion from Google about this topic for more concrete-information:

Thanks for your time and keep up the good work here! :)

Zord Gaf

Elder Moderator
Tribal Wars Team
Which browser do you use?
It could be your browser is adding that for internal purposes. Like how it adds '<thead>' and '<tbody>' for a table -- even if not specified in the original source document.