[wp-trac] [WordPress Trac] #28081: Do a canonical redirect for pages when query var 'paged' is set

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


#28081: Do a canonical redirect for pages when query var 'paged' is set
-------------------------------------------------+-------------------------
 Reporter:  ocean90                              |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  accepted
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Canonical                            |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch SEO needs-unit-tests       |     Focuses:
  needs-refresh                                  |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 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/28081#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list