WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#39899 closed defect (bug) (duplicate)

Integer slugs load parents content

Reported by: nattaylor Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.2
Component: Canonical Keywords:
Focuses: Cc:

Description

Given a page with slug=foo then requests for /foo/[0-9]* load foo's content.

To reproduce, just try this on most Wordpress installs (e.g. https://techcrunch.com/contact/8675309/)

Here is the output from the debug bar

Request:

services/123

Query String:

page=123&pagename=services

Matched Rewrite Rule:

(.?.+?)(?:/([0-9]+))?/?$

Matched Rewrite Query:

pagename=services&page=123

Change History (2)

#1 @SergeyBiryukov
2 years ago

  • Component changed from General to Canonical
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @nattaylor, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #28081.

#2 @nattaylor
2 years ago

Ah, thanks @SergeyBiryukov. I was sure I wasn't the only one.

Note: See TracTickets for help on using tickets.