Search code examples
pythondjangodjango-cmsslug

Django-cms: Can't publish 2 pages with the same slug in different levels


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 (Anything) 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"). It's the only thing stoping me from updating to 2.4.1 (latest release in the moment). Thank you. Note that It will let me create the duplicate page if its not published. The problem is when I try to publish them.


Solution

    1. Try to delete the pages and readd the pages after it.
    2. Start to publish from the root and then the child.

    If it still failed, you can check the db table cms_titles. To fix your paths manually or post it here