[wp-trac] [WordPress Trac] #45337: Strange pagination issue

WordPress Trac noreply at wordpress.org
Mon May 4 10:40:20 UTC 2020


#45337: Strange pagination issue
------------------------------------------+-----------------------------
 Reporter:  sachit.tandukar               |       Owner:  SergeyBiryukov
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  5.5
Component:  Rewrite Rules                 |     Version:  4.4
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47760" 47760]:
 {{{
 #!CommitTicketReference repository="" revision="47760"
 Canonical: Redirect paged requests for a static page assigned as the
 "Posts page".

 This avoids displaying duplicate content of the home page under different
 URLs with appended page numbers.

 This change only affects the `<!--nextpage-->` pagination (`page` query
 variable) and not the regular multiple posts pagination (`paged` query
 variable).

 The posts page does not support the `<!--nextpage-->` pagination, so
 requests for invalid page numbers should be redirected to the page
 permalink, applying the logic previously implemented for single posts or
 pages.

 Follow-up to [34492], [47727].

 Props jeremyfelt, sachit.tandukar, SergeyBiryukov.
 Fixes #45337. See #40773, #28081, #11694.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45337#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list