fromthepage icon indicating copy to clipboard operation
fromthepage copied to clipboard

handle duplicate slug on document set

Open saracarl opened this issue 6 months ago • 2 comments

UNC asks:

I created a new document set in our Cameron Family – Records of Enslavement collection (https://fromthepage.com/unclibraries/00133-cameron-enslavement) If I go to Sets and click on “Legal Documents” it works and goes to here: https://fromthepage.com/unclibraries/legal-documents but I created one called “Letters” and it redirects to here: https://fromthepage.com/ssm-archives and tells me I don’t have access to [Complete!] Miscellaneous Letters. And if I just type in “https://fromthepage.com/unclibraries/letters” it also redirects me to Sandy Spring Museum. Should I rename my set? Did I break it? Thank you!

I respond:

You'll need to change it.

So, normally, if you use a slug that is already in use we append some random numbers to the end to differentiate it. That's definitely what happens when you reuse one on a collection. It sounds like we don't do this check on a document set. I'll open an issue to handle this the same way in document sets.

So whatever check we do on the slug for a collection we need to do for document set slugs as well.

saracarl avatar Aug 22 '24 13:08 saracarl