Hacker News new | ask | show | jobs
by eli 3929 days ago
We use this scheme as well. If only the last part with the ID is cut off and you keep the slug text unique, you can still redirect to the correct article.
1 comments

Then you don't need the ID at all :) because you use the slug
I want the slug to be able to change and I'd prefer not to have to keep track of every variation ever assigned to that piece of content.
if you go with /id/slug, you can redirect anything that is not exactly the same as the current, so any older links would still work because no matter what the slug was, you can redirect because the ID doesn't change.
right, same as /slug/id
no :D /id/slug is safer