[wp-trac] [WordPress Trac] #45337: Strange pagination issue
WordPress Trac
noreply at wordpress.org
Thu Apr 30 12:03:26 UTC 2020
#45337: Strange pagination issue
------------------------------------------+-----------------------------
Reporter: sachit.tandukar | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Rewrite Rules | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"47727" 47727]:
{{{
#!CommitTicketReference repository="" revision="47727"
Canonical: Redirect paged requests for non-paginated posts to the post
permalink.
This avoids displaying duplicate content of the same post under different
URLs and ensures the canonical URL is correct.
Previously, requests for invalid page numbers were only redirected to the
post permalink if the post was actually paginated using the `<!--
nextpage-->` marker.
Follow-up to [34492].
Props jeremyfelt, prografika, sachit.tandukar, subrataemfluence, hronak,
ekatherine, henry.wright, chesio, dd32, SergeyBiryukov.
Fixes #40773. See #45337, #28081, #11694.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45337#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list