RSS Feed/News Incorrect Canonical on Tag Pagination

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
32,573
Points
823

Reputation:

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

Read more

Continue reading...
 
Status
Not open for further replies.
Top