When sorting by “Latest” in a Discourse category, the URL adds “/l/latest” but the canonical tag points to the base category URL. Sunny observed that Google is indexing both URLs, suggesting two possible reasons: Google disregards the canonical tag due to changing content, or Google favors static-looking URLs. Sunny notes that this issue is different from WordPress category pages and suggests that Google is not respecting the canonical tag on Discourse. Possible solutions include using URL parameters in Google Search Console or canonical tags, but the use of “/l/latest” instead of a “?” tag may be causing the issue. codinghorror and EducatorWaji initially saw no problem, but Sunny clarifies the issue.
Upon clicking “Latest” in a category view, I am seeing that discourse adds “/l/latest” to the page URL.
However the canonical points to the base category URL.