Description
This is more of a question regarding a best/good practice than an issue.
I've been using mongoid_slugs for a while on my website. Now I would like to remove them and to switch back to using the db ids. I could remove the slugs keyword and the include statement from my model to get the result I want. But this would make me lose my slug history, which I don't want, as that could have unforseen negative consequences with Google.
What's the best practice for abandoning slugs while keeping the slug history?
I tried using slug :id, history: true
but this suffixes my slugs with -1 58519083934c2b39e6c49a73-1
, as it should if the id is in the slug table by default - although it does not get listed on document.slugs
. What I am looking for is a way to tell mongoid_slug to use the id as the slug, instead of the last item of the slugs array.