- Affected version
- v2.3.4
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!
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!