Make WordPress Core

Opened 10 years ago

Closed 6 years ago

Last modified 4 years ago

#32759 closed defect (bug) (worksforme)

Permalink routing for same slugs in hierarchical structure wrong

Reported by: maszewo's profile maszewo Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2.2
Component: Permalinks Keywords:
Focuses: Cc:

Description

Hi there, i have a strange problem with identical page-slugs in a hierarchical page-structure:

i have several events structured with pages. each event has a sub-page /show/
one of these is routing wrong, because:

domain.com/pagename/eventname/show/
routes in frontend to
domain.com/pagename/anothereventname/show/

(there are some more events with the sub-page /show/)

  • there are no other custom post types registered
  • no special redirect plugins
  • permalink-structure is updated several times
  • I've tested it on 2 different apache-webservers with the same result

so i dont have any idea yet what i can do! Any suggestions?

Attachments (1)

32759.tests.patch (3.6 KB) - added by johnbillion 10 years ago.

Download all attachments as: .zip

Change History (7)

#1 @johnbillion
10 years ago

  • Keywords reporter-feedback added

Thanks for the report, maszewo.

I'm unable to reproduce this problem. Are you able to test your site with all your plugins deactivated, and one of the default themes enabled?

#2 @johnbillion
10 years ago

32759.tests.patch implements some unit tests to cover this. Tests are passing.

#3 @johnbillion
10 years ago

In 32918:

Implement canonical and url_to_postid() tests for child pages which share a post name with other child pages.

See #32759

#4 @sebastienserre
6 years ago

  • Keywords close added
  • Resolution set to wontfix
  • Status changed from new to closed

I didn't succeed to reproduce.
Please feel free to re-open if needed

#5 @swissspidy
6 years ago

  • Keywords reporter-feedback close removed
  • Milestone Awaiting Review deleted

#6 @SergeyBiryukov
4 years ago

  • Resolution changed from wontfix to worksforme
Note: See TracTickets for help on using tickets.