• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.3 Canonical link in header?

Floren

Well-known member
#1
I notice that certain key pages have a canonical link in header:
<link rel="canonical" href="http://xenforo.com/community/members/" />
Google explains well their purpose, however, I don't understand why the Resources (for example) don't have a canonical link?

Thank you for letting me know.
 

Floren

Well-known member
#3
Not sure, on mines is there and I don't have pagination:
https://www.axivo.com/members/
<link rel="canonical" href="https://www.axivo.com/members/" />
Is this part of the member_notable template, not present into resource_index:
Code:
<xen:container var="$head.canonical">
    <link rel="canonical" href="{xen:link 'canonical:members'}" /></xen:container>
I just need to learn the logic behind, for now I added the canonical link to Resources main page and I want to make sure it is OK.
 

Brogan

XenForo moderator
Staff member
#4
The canonical URL has to be manually added to pages, using the code above.

I'm not sure why it hasn't been added for the RM - I'll check with @Mike.
 

Floren

Well-known member
#5
I'm going to add the canonical links in resource categories also, the same way is done on forums.
 
Last edited: