May 16, 2022, 7:41pm
I have a website that has a page that has had multiple UIDs that have since been deleted but are still stored as the documents slugs. Is there anyways to remove them?
(need to remove Careers slugs from About-us)
May 17, 2022, 7:28am
Thanks for reaching out to us.
Please find information about slugs in this article:
Slugs are a deprecated feature of Prismic
Slugs are a deprecated feature used before we introduced
the UID field. We don't recommend using them and thus don't provide any resources for it.
You can still find them in your document object for anyone with a legacy setup that uses them.
You don't need to worry about them!
May 17, 2022, 2:40pm
since slugs are a depreciated feature, how do we remove them? it seems they might be connected with the URLs object being returned in this API:
I don't see a way to remove them on the prismic dashboard, and it is causing routing errors on our site.
May 17, 2022, 6:51pm
@svc Unfortunately, you can not remove slugs. What routing error are you getting? could you please share more details?
May 17, 2022, 7:23pm
When I try to change my "career" page to "careers" it says the UID is already in use, but the only time Careers was used was in the early stages of "about-us" development.
now when I go to "
myWebsite.com/careers" I am routed to the about-us page.
let me know if you need clarification!
May 19, 2022, 11:14am
It's not related to slug. It's related to the UID field in Prismic editor. This means that another document in your repository already has this
UID value. It could be a document that is drafted or in the archive.
Please check our article to unlock the old UId:
When adding a value to your UID field, you may encounter the following error:
This value is already used by another <custom-type-name> document
This means that another document in your repository already has this UID value. It could be a document that is drafted or in the archive. If you can't find the document with this UID value, that means that one of your documents used to have this UID value, and now it is locked. In order to re-assign a UID, you must delete the document that currently ha…
Let me know if the issue doesn't solve.