[wp-trac] [WordPress Trac] #18962: Allow duplicate slugs for different content
WordPress Trac
wp-trac at lists.automattic.com
Sun Oct 16 16:23:34 UTC 2011
#18962: Allow duplicate slugs for different content
---------------------------+-----------------------------
Reporter: maorb | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version:
Severity: normal | Keywords:
---------------------------+-----------------------------
Currently, the slug of a post (or any other CPT) must be unique.
If a content is being created and an already existing slug is being
assigned to it - WP will add a number for identification (i.e. about-2
etc).
That means, that if one has content from different content types, or in
different categories (taxonomies), it still cannot have same slug.
The issue might be very disturbing when working in a multi lingual site
(i.e using WPML or any other plugin for that).
Suppose there is an about page - www.mysite.com/about.
This is in the main language of the site.
Than a translation to that content page is being added, let's say it is
translation to English.
You would expect url something like www.mysite.com/en/about, but the slug
is being changed to about-2, so the url of the about page in English
becomes www.mysite.com/en/about-2.
For a site with 10 languages, let's say, it will end with urls like
site.com/lang/about-10 etc.. and this is not looking good and may confuse.
As a cms, WP should let the admin/developer/operator - to have same slugs
for different content types, or even in the same content type. The
$post->ID is the unique identifier of a content, why should be also the
slug?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18962>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list