Canonical URLs use pagination that counts whispers

This post: https://intfiction.org/t/regarding-the-ifcomp-code-of-conduct/46074/68

Has this canonical URL: https://intfiction.org/t/regarding-the-ifcomp-code-of-conduct/46074?page=4

But that URL won’t work unless you’re staff because its pagination counts whispers, and if you’re not staff, there is no page 4.

(If the above topic gets enough new replies by the time you see this that it starts working, try the permalink to the latest reply, the bug should still be present.)

3개의 좋아요

I bumped into this bug when consuming the Discourse RSS feed with Feedly. Feedly crawls links and replaces the <link> element with the canonical URL listed in the source. So, in practice, when I clicked on this post in the RSS feed, I hit an error page.

3개의 좋아요

Thank you @Dannii and @dfabulich for reporting this, we are investigating this. We will share details as we proceed, if any.

5개의 좋아요

The below commit should fix the issue. @dfabulich I’ll push it to your site on Monday.

https://github.com/discourse/discourse/commit/06d426bd87d5bf87e36dd543efd298aaef94156e

5개의 좋아요