[wp-trac] [WordPress Trac] #18962: Allow duplicate slugs for different content
WordPress Trac
noreply at wordpress.org
Sat Jan 20 18:37:15 UTC 2018
#18962: Allow duplicate slugs for different content
--------------------------------------+-----------------------------
Reporter: maorb | Owner: wonderboymusic
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.1
Component: Permalinks | Version: 2.9
Severity: major | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+-----------------------------
Comment (by skorasaurus):
Replying to [comment:50 j.conti]:
> Hi,
>
> More problems with this...
>
> Fist, you need the permanlinks set to /%postname%/.
>
> Then, you can add a new page with the title Slug Test, the permanlink
will be `slug-test` (added by WordPress) after that, add a new post with
the Title `Slug Test`, and WordPress will add the same permanlink `slug-
test`
>
> Both permanlinks are created by WordPress, but only one works because
only one `slug-test` can exist. `http://example.com/slug-test/`
>
> This is a very big problem...
That is true and that covered under a different ticket -
https://core.trac.wordpress.org/ticket/13459
I think this ticket fixed the ability to have the same slug as long as
they were on different hierarchal levels (I am not sure, please correct if
I'm wrong).
(i.e. domain.com/category/bananas and domain.com/bananas)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18962#comment:51>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list