Open chadwithuhc opened 10 years ago
I think the second option would be best. But I kind of like to keep the URLs readable. We should think of a way to combine the two. Maybe something like /tricks/<id>/<slug>
, where the slug is just as a 'readable detail' and the tricks get retrieved by the given ID?
I think that is doable. I've always wondered, what do people think is the best solution for situations where someone tries to visit the URL without the slug, like /tricks/<id>
? Do they just redirect them to the full URL to prevent duplicate pages, or give em a 404?
Hmm that's tough, I'd rather prevent that extra request / redirect..
I agree, but the only reason they would get there is a bad link or trying to break the URL anyway... so it's not a common occurrence.
You're right. I'll look into the options and see if I can implement a change :)
I think it would be better if the URL slug did not update with the title of the post. If a user posts a trick, then later on changes the title, the anyone linked to that page will break.
I propose one of a few options:
Thoughts?