How do URL & Topic Title updates work?

When you update a Topic Title, I’ve noticed that the link is updated, but the old URLs still work?

e.g

https://www.example.com/t/draft-today-was-interesting

still directs ultimately to the updated, despite the original URL being the above:

https://www.example.com/t/today-was-interesting

This is neat & cool, and clearly well thought out. How is that set up?

You are missing one very important bit of data in your URLs: the topic id :wink:

That’s the only required information. We use it to fetch the topic in the database no matter what slug was used (we’ll even automatically redirect to the proper slug if it’s different from the one stored in the database)

6 Likes

Sorry was about to update the post :smiley:

Thanks for explanation :slight_smile: