Opened 11 years ago
Closed 11 years ago
#31704 closed defect (bug) (duplicate)
Same alias for post and page
| Reported by: | syamvilakudy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Permalinks | Version: | 4.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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 4.1.1 → 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Did you expect the post to "win" over the page or did you expect WordPress to handle the slug conflict?