It is easy to put docs in the trash in draft, but hard to discover how to commit that
See original GitHub issueI noticed that Apostrophe changes the slug of a page when it’s moved to the trash in order to avoid conflicts with other pages that may be live (as per #1455). However, the slug seems to only be changed for the draft version of the trashed page, not for the live version. You have to manually commit the trashed page to avoid slug conflicts with other pages in the tree.
Here are the steps I took to reproduce the problem:
- I’m using apostrophe@2.64.1 and apostrophe-workflow@2.12.0
- I create a new page with the slug
/fredrik-s-page
- Without making any changes to that page (or commiting it), I move it to the trash
- I create another page with the slug
/fredrik-s-page
- I add some content to that page and commit it
Expected outcome: the URL should be the same between the draft and live versions of the second page
Actual outcome: while in draft mode, the URL remains example.com/se/fredrik-s-page
, but in live mode, it becomes something like example.com/se/fredrik-s-page8
. This can only be fixes by going to the settings of the first page and manually commiting it, and then commiting the second page again.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Reopened with a more suitable title.
Great! Happy to do what I can to contribute a PR once we’ve decided on how we want the UX to behave. Also, we could move this to the apostrophe-workflow repo now that we’re narrowed down the scope of the issue somewhat, since I suppose that’s where the PR will end up