Link full: vs canonical:

Mike

XenForo developer
Staff member
Canonical is based on the board URL set in the control panel. Full is based on the actual URL being accessed, which might not be the same thing (though generally is).
 

Jaxel

Well-known member
So "full" is the actual URL, but "canonical" is the URL you want to advertise? That means a canonical URL could have a redirect in it, but a full wont?
 

Mike

XenForo developer
Staff member
As an example, assume we didn't have any redirects in place and I accessed this forum via http://www.xenforo.com/community/ (regular HTTP and with the www). Then this:
Code:
{xen:link full:account}
Would link to http://www.xenforo.com/community/account/ . (If I accessed via a different URL, the generated URL would differ.)

Now, our board URL setting is https://xenforo.com/community. If used this code:
Code:
{xen:link canonical:account}
Then it would always generate https://xenforo.com/community/account/, regardless of the URL I was browsing.

Canonical is mostly used in emails, rel=canonical, and when we pass URLs to things like og:url.
 
Top