Hacker News new | ask | show | jobs
by Walkman 3929 days ago
The problem with that if the user chop off the last bits (e.g. Pasting in simewhere where it cannot fit) the id lost and you can't look it up. it uappens more than you would think. It's important to have it early.
1 comments

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.
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