mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
2ad4fc39b6
Currently, when page param is not given to TopicView we calculate page for canonical_path, however, it is skipped for next_path. We should use the same calculation to define page, so next page URL will be accurate. Currently if you [view source of meta post](view-source:https://meta.discourse.org/t/post-rate-limit-trigger-for-a-topic-thats-heating-up/98294/46) you will see: ``` <link rel="canonical" href="https://meta.discourse.org/t/post-rate-limit-trigger-for-a-topic-thats-heating-up/98294?page=3" /> <link rel="next" href="/t/post-rate-limit-trigger-for-a-topic-thats-heating-up/98294?page=2"> ```