Support » Fixing WordPress » How to handle links to paginated comments?

  • Some of my posts have a large number of comments and so I tried to use the standard wordpress functionality of paginating the comments. This works fine, but there is one problem:

    After I activated paginated comments, I noticed that their links have changed:
    When before the activation a comment had a link like:
    my-page/my-post/#comment-123
    it now changed to:
    my-page/my-post/comment-page-2/#comment-123

    The problem is: Because of this, all old existing links to comments don’t work anymore. 🙁
    And even for new links created it is not guaranteed that those links will remain correct, because some visitors might add some comments on old pages, so that the numbering of commentpages might change.

    I think, I’m not the only one facing this problem and so I hope there is already a solution how to handle this.

    Thank you, Tooni

    • This topic was modified 3 months, 2 weeks ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    There is not really any fix for this, as the #comment-X part is not sent to the server, so there is no way for WordPress to see it and redirect the link to the correct page.

    However:

    And even for new links created it is not guaranteed that those links will remain correct, because some visitors might add some comments on old pages, so that the numbering of commentpages might change.

    This can only happen if you display comments in “newest first” order. If it is oldest first, then new comments will get made on later pages, and thus the comment locations will not change in the future.

    Thread Starter Tooni

    (@tooni)

    There is not really any fix for this

    Thank you for your answer, although it is really disappointing.
    Of course I also don’t have a solution for this problem. But I really would like to use the comment pagination, because it has several advantages (also in terms of SEO and performance). However, when I activate it, it would create thousands of broken links, which I cannot accept.
    So finally it seems that I have to accept, that the possibility of comment pagination is not usable (in my case). Very sad… 🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.