Make WordPress Core

Opened 12 days ago

Last modified 12 days ago

#50163 accepted defect (bug)

Perform a canonical redirect when paginated states of the front page are not found

Reported by: dd32 Owned by: SergeyBiryukov
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Canonical Keywords: has-patch
Focuses: Cc:


As a followup to #45337, [34492], and [47727].

When example.com/ has a static front page assigned and uses <!--nextpage--> accessing non-existing pages uses example.com/page/3/ and Canonical won't kick in.

This is because paged states of the front page use the paged query var, not the page query var.

Should also fix https://meta.trac.wordpress.org/ticket/5184 :)

Change History (2)

#2 @SergeyBiryukov
12 days ago

  • Milestone changed from Awaiting Review to 5.5
  • Owner set to SergeyBiryukov
  • Status changed from new to accepted

Thanks for the ticket, I'm working on this as part of #28081 :)

Note: See TracTickets for help on using tickets.