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

WordPress Trac noreply at wordpress.org
Thu Apr 30 12:03:27 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:"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/28081#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list