Fixed tag pages has no rel="canonical"?

Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.14).

Change log:
Ensure tag pages have a canonical URL set
There may be a delay before changes are rolled out to the XenForo Community.
 
I'm running v2.3.4 and I just noticed a bug.

I am looking at the code of my XenForo tag page number 10. This is what the canonical says:

<link rel="canonical" href="https://www.mywebsite/forum/tags/honda/" />

That's not right.

This is the code that produces it in the tag_view template:

<xf:macro template="metadata_macros" name="canonical_url" arg-canonicalUrl="{{ link('canonical:tags', $tag) }}" />

I updated the code on the tag_view template to this, which fixed the issue:

<xf:macro template="metadata_macros" name="canonical_url" arg-canonicalUrl="{{ link('canonical:tags', $tag, {'page': $page}) }}" />

But, if this issue still exists in later versions, I'd say it needs to be fixed. Thanks!
 
Back
Top Bottom