• 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

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
 
So, can you tell me how i can get the canonical?

{xen:link 'canonical:showcase', $category} doesn't work
 
So, can you tell me how i can get the canonical?
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
 
Back
Top