1. REGISTRATION REQUIREMENTS:

    Your username here MUST MATCH your XenForo username (connected to your XF license).

    Once you have registered here, then you need to start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Canonical of a category

Discussion in 'Showcase Support' started by FloV, Nov 18, 2015.

  1. FloV

    FloV New Member AMS Premium CAS Premium EMS Early Adopter IMS Premium LD Premium RMS Premium SC Premium UBS Premium

    Hey,

    i'm trying to get the canonical url of a category for the og:url meta tag but i couldn't figure it out how.

    Maybe you could help me out with this? Would be awesome! :)

    Thanks a lot in advance

    Florian
     
  2. Bob

    Bob Developer Staff Member

    I think this WAS a bug that has been fixed (added some additional code and made some template changes).
     
  3. FloV

    FloV New Member AMS Premium CAS Premium EMS Early Adopter IMS Premium LD Premium RMS Premium SC Premium UBS Premium

    So, can you tell me how i can get the canonical?

    {xen:link 'canonical:showcase', $category} doesn't work
     
  4. Bob

    Bob Developer Staff Member

    The next release contains the fix in the Category Controller. The Category Template itself will also now properly map the canonical to the head.
    HTML:
    <xen:container var="$head.canonical">
        <link rel="canonical" href="{xen:link 'canonical:showcase/category', $category, "page={xen:if '{$page} > 1', $page, ''}"}" /></xen:container>
    Selection_243.png
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.