1. 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?

Discussion in 'XenForo Questions and Support' started by Floren, Apr 29, 2014.

  1. Floren

    Floren Well-Known Member

    I notice that certain key pages have a canonical link in header:
    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.
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    I believe the canonical URL is provided if there is pagination.
  3. Floren

    Floren Well-Known Member

    Not sure, on mines is there and I don't have pagination:
    Is this part of the member_notable template, not present into resource_index:
    <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.
  4. Brogan

    Brogan XenForo Moderator Staff Member

    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 likes this.
  5. Floren

    Floren Well-Known Member

    I'm going to add the canonical links in resource categories also, the same way is done on forums.
    Last edited: Apr 29, 2014

Share This Page