Deleted published page (topic) slug remains in use

I did the following:

  • enabled native page publishing in settings (enable page publishing)
  • created a topic and published as a page at slug ‘about-us’
  • deleted topic while exploring other page-publishing options
  • when to re-create the published page at ‘about-us’ via native page publishing (first thing above)
  • presented with " Sorry, you can’t publish this page. Slug has already been taken. " error despite the fact the page/topic in question has been deleted and is no longer accessible to anyone (including myself, the admin)

Any ideas on how to fix this, or is this a bug?

Thanks!

2 Likes

Can we repro this @tshenry ?

1 Like

Yep, I can repro on Try following the steps in the OP. Currently it appears you need to un-publish the published page before deleting the topic. Ideally, deleting the topic would automatically un-publish the page and free up the slug.

I’m pretty sure this is something we’ll want to improve, but the current workaround would be to find the deleted topic (you can append ?status=deleted to the URL of a topic list to find deleted topics), restore it, un-publish the post, then re-delete the topic.

3 Likes

Thank you, that did it!

1 Like

aha we should assign this bug @eviltrout!

1 Like

Fixed here:

https://github.com/discourse/discourse/pull/12358

Deleting a topic will also delete the associated published page, freeing up the slug.

3 Likes

This topic was automatically closed after 41 hours. New replies are no longer allowed.