You can clone with
Reproduced this on django-cms 2.3.3
Steps to reproduce:
1. Create the first page with slug 'master' and publish it
2. Create the second page with the same slug ('master')
3. On the second page's change view tick 'Is published' and save the page
File "/home/kux/workspace/src/other/django/django/core/handlers/base.py" in get_response
Exception Type: KeyError at /admin/cms/page/6/
Exception Value: 'slug'
Note: If publishing two page with the same slug from the pages tree view, you do get a nice pop up dialog that says:
Page 'master' has the same url '/master/' as current page "master".
Wouldn't it be easier to just not let the user create two pages with the same slug? (look for duplicate slugs at page creation time rather than page publishing time)
Thanks for your report.
I watched this happening a couple of time but I was too busy to check this out.
I opened PR #1485 that should fix this
It's actually already fixed in develop but I think should be ported to master.
As for checking this at creation or publishing time, the use case for late-check is that you can create a non published page with the same slug as a published page to prepare contents behind closes doors and then unpublish the old page and publish the new one when everything is ready
wow, that was fast :)
I'm having an issue with slugs in child pages. Imagine I have a page called "Something" in the main tree with the slug "something", and another page named "Anything" with the slug "anything". This second page has a child page also called "Something" with the slug "something" again, that should result in an /anything/something/ url, and it was working on django-cms 2.3.5 but it's not working anymore on 2.4.1, i get an error saying i've already used that url (Page 'Something' has the same url 'something' as current page "Something"), but I'm trying to use it in a child page, that doesn't make sense to don't let me. Please get that fixed, it's the only thing stoping me from updating to 2.4.1 (latest release in the moment). Thank you.