(no title)
aejm
|
1 year ago
What’s the best way to handle url slugs that change? For example, if I have www.example.com/page/foo, and the user changes that page’s title to bar, the slug updates to www.example.com/page/bar and anyone visiting the old url gets automatically redirected to the new one. But now the old slug of foo can’t be used again (without appending some unique identifier to it, like foo-th683gh9i).
isoprophlex|1 year ago
cthor|1 year ago
unknown|1 year ago
[deleted]
msoad|1 year ago
Stackoverflow makes the slug completely optional but you have the choice of only accepting foo and bar in your example
Traubenfuchs|1 year ago
This is bad.