Opened 9 months ago
Last modified 10 days ago
#50233 accepted defect (bug)
Limit pagination for comments
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.8 | Priority: | normal |
Severity: | minor | Version: | 5.4.1 |
Component: | Permalinks | Keywords: | has-patch has-unit-tests |
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
Attachments (3)
Change History (13)
#1
follow-up:
↓ 2
@
9 months ago
- Component changed from Canonical to Permalinks
- Severity changed from critical to minor
- Summary changed from WordPress Infinite link problem? to Limit pagination
#2
in reply to:
↑ 1
@
9 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.
@
4 months ago
This patch adds page limitation for comments non existing page and redirect to parent post
This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.
4 months ago
#7
@
4 months ago
In 50233.2.patch added some minor text and space changes.
: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.