WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#11857 closed defect (bug) (fixed)

canonical redirect isn't working for paged=too_many

Reported by: Denis-de-Bernardy Owned by: markjaquith
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9
Component: Canonical Keywords: 2nd-opinion
Focuses: Cc:

Description

if you try to fetch a non-existing page (n+1 where n is the maximum number of pages), WP should return a 404. or redirect to the first or last page of the blog/category/tag/etc.

Change History (5)

comment:2 miqrogroove4 years ago

see also #11917 where numeric page slugs are indistinguishable from paged=too_many.

comment:3 dd324 years ago

  • Keywords 2nd-opinion added

+1 for a 404, As its not a valid URL.

Of course however, Theres cases where the page MAY have existed, but is now merged into a single page.

comment:4 beaulebens4 years ago

+1 from me on this, makes sense.

comment:5 dd324 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13944]) Don't prevent 404'ing on tax/author pages when a paged page is requested which doesnt contain posts. For example, /category/animal/page/9999999/. Allows for /category/empty_cat/ to not 404. Fixes #11857

Note: See TracTickets for help on using tickets.