[wp-trac] [WordPress Trac] #50163: Perform a canonical redirect when paginated states of the front page are not found

WordPress Trac noreply at wordpress.org
Wed Sep 25 19:35:35 UTC 2024


#50163: Perform a canonical redirect when paginated states of the front page are
not found
-------------------------------------------------+-------------------------
 Reporter:  dd32                                 |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.7
Component:  Canonical                            |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-screenshots early      |     Focuses:
  has-unit-tests has-testing-info commit         |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

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


Comment:

 In [changeset:"59091" 59091]:
 {{{
 #!CommitTicketReference repository="" revision="59091"
 Canonical: Redirect when front page's paginated states not found.

 Perform a canonical redirect for an invalid pagination request of a static
 front page.

 When a site has a static front page assigned and that page has a `<!--
 nextpage-->` within its content, previously accessing non-existing pages
 (e.g. `example.com/page/3/`) did not redirect or return a 404 or 301. This
 changeset resolves that issue by performing a canonical redirect.

 Unit tests are also included for this specific use case and to ensure the
 fix does not affect a blog listing home page.

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

 Props dd32, audrasjb, chaion07, hellofromTonya, joemcgill, lukecarbis,
 Mte90, mukesh27, peterwilsoncc, rajinsharwar, SergeyBiryukov.
 Fixes #50163.
 See meta#5184.
 }}}

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


More information about the wp-trac mailing list