Opened 11 years ago
Closed 11 years ago
#31704 closed defect (bug) (duplicate)
Same alias for post and page
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 4.1 |
| Component: | Permalinks | Keywords: | |
| Focuses: | Cc: |
Description
Hi,
My permalink format is %postname% .
I have created a post named as "business" and page created with the same name "business".
These two posts are pointed to a single URL
site.com/businees
and this link displaying page content
I think this is a bug in wordpress latest version
Thanks
Syam Mohan
Change History (3)
#2
@
11 years ago
- Version changed from 4.1.1 to 4.1
Introduced in [30158]. See #18962. References from that ticket to this issue are at https://core.trac.wordpress.org/ticket/18962#comment:2, https://core.trac.wordpress.org/ticket/18962#comment:32.
IMO we could do a smidgen more to protect against these cases. Like, what if wp_unique_post_slug() disallowed page/post slug conflicts if permalink_structure is /%postname%/? That wouldn't account for people who create conflicting slugs under one permastruct and then switch to another, but it would probably cover most cases like this.
Did you expect the post to "win" over the page or did you expect WordPress to handle the slug conflict?