[wp-trac] [WordPress Trac] #50233: Limit pagination for comments

WordPress Trac noreply at wordpress.org
Tue Apr 26 03:30:27 UTC 2022

#50233: Limit pagination for comments
 Reporter:  devrekli                             |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Permalinks                           |     Version:  5.4.1
 Severity:  minor                                |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing dev-feedback                           |
Changes (by peterwilsoncc):

 * milestone:  6.0 => Future Release


 > Redirecting URLs that exceed the max makes sense, though I haven’t
 looked at the patches yet. Nobody has chimed in about it breaking backward
 compat, so this looks like a straightforward SEO win?

 I think redirecting might be problematic:

 * `301 Permanent` redirects are cached by the browser permanently. Someone
 visiting page two of the comments before it exists would never be able to
 visit page two of the comments
 * `302|307 Temporary` redirects can be indexed by search engines as I
 understand it.

 (Someone working in the WordPress SEO space may wish to correct me.)

 I think the best option would be to either:

 * show a 404 page if the comments page doesn't yet exist
 * ensure the canonical tag points to the post's default page and the
 comments on that page are displayed.

 My preference is leaning towards a 404 page.

 As this hasn't had any substantial work on it during the 6.0 cycle, I'm
 going to move the ticket on to a future release.

Ticket URL: <https://core.trac.wordpress.org/ticket/50233#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list