WordPress.org

Make WordPress Core

Opened 2 months ago

Last modified 8 days ago

#50233 accepted defect (bug)

Limit pagination for comments

Reported by: devrekli Owned by: SergeyBiryukov
Milestone: 5.6 Priority: normal
Severity: minor Version: 5.4.1
Component: Permalinks Keywords:
Focuses: Cc:

Description

you can look? please https://wordpress.org/support/topic/wordpress-infinite-link-problem/

Hello. WordPress has endless link problems for many years. Note: This problem happens when we paged comment example:

Others:

https://perishablepress.com/wordpress-infinite-duplicate-content/comment-page-2/
https://perishablepress.com/wordpress-infinite-duplicate-content/comment-page-2754/

others

https://www.wpbeginner.com/beginners-guide/how-to-properly-ask-for-wordpress-support-and-get-it/comment-page-2754/
https://www.wpbeginner.com/beginners-guide/how-to-properly-ask-for-wordpress-support-and-get-it/comment-page-5754/

others

https://www.isitwp.com/best-wordpress-404-error-plugins/comment-page-3754/
https://www.isitwp.com/best-wordpress-404-error-plugins/comment-page-5754/

Attention! There are no comments on these pages. But the links are entering the article. This is the problem for google search console.

If there is no comment, that link should not work. How can I fix this?

Paged comments from your admin panel. And you try too

If we do not paginate, this is no problem.

This problem happens in paginations..

If the setting is like this. screen shot: https://prnt.sc/smhi90

Change History (3)

#1 follow-up: @carike
2 months ago

  • Component changed from Canonical to Permalinks
  • Severity changed from critical to minor
  • Summary changed from WordPress Infinite link problem? to Limit pagination
How can I fix this?

:wave:
Hallo :)
As I indicated on the support forums, for a timely solution, you may want to consider hiring a developer to create a custom plugin, if this is important to you.

In terms of this Trac ticket:

The issue:
Paginated pages with no entries display the original post.
Here is an example: https://wordpress.org/support/topic/wordpress-infinite-link-problem/page/12345/

The proposed solution:
When a permalink is evaluated for a paginated URL, it should check if the particular page "exists" (contains entries), not just whether the post exists.
If there are no entries on the paginated URL, the visitor should be redirected to the original post's URL.

Last edited 2 months ago by carike (previous) (diff)

#2 in reply to: ↑ 1 @SergeyBiryukov
2 months ago

  • Milestone changed from Awaiting Review to 5.5
  • Owner set to SergeyBiryukov
  • Status changed from new to accepted
  • Summary changed from Limit pagination to Limit pagination for comments

Replying to carike:

The issue:
Paginated pages with no entries display the original post.
Here is an example: https://wordpress.org/support/topic/wordpress-infinite-link-problem/page/12345/

Just noting that particular issue is being tracked in #28081.

This ticket is a reporting a similar, but distinct issue for paginated comments, which was previously noted in comment:6:ticket:11694, but never addressed in that ticket.

Last edited 2 months ago by SergeyBiryukov (previous) (diff)

#3 @SergeyBiryukov
8 days ago

  • Milestone changed from 5.5 to 5.6
Note: See TracTickets for help on using tickets.