[wp-trac] [WordPress Trac] #13459: Conflict between post and page slugs/permalinks when permalink setting is set to /%postname%/
WordPress Trac
wp-trac at lists.automattic.com
Sat Apr 23 12:54:28 UTC 2011
#13459: Conflict between post and page slugs/permalinks when permalink setting is
set to /%postname%/
--------------------------+-----------------------------
Reporter: jamescollins | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Permalinks | Version: 2.9.2
Severity: normal | Resolution:
Keywords: dev-feedback |
--------------------------+-----------------------------
Comment (by stephencronin):
This problem still occurs in 3.1.1.
It persists even after the Page is sent to Trash (the user gets a 404
instead of the Post), until the Page is emptied from the Trash.
The suggestion by solarissmoke is better than nothing. Ideally it would
have to work both ways, ie if permalink is /%postname%/ then:
1) check that no posts have this slug when generating top level page slug
2) check that no top level pages have this slug when generating post slug
It may not cover everything:
a) it may not just be posts and pages we have to worry about (some people
strip /category/ from URL for category pages for example);
b) there is a very small chance that /%category%/%postname%/ posts could
clash with a second level page.
but they are real edge cases and as I said, it's better to do something
than nothing.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13459#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list