# How do URL & Topic Title updates work?

**URL:** https://meta.discourse.org/t/how-do-url-topic-title-updates-work/83633
**Category:** Support
**Created:** [March 23, 2018, 9:46am UTC](https://meta.discourse.org/t/how-do-url-topic-title-updates-work/83633 "2018-03-23T09:46:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [March 23, 2018, 9:46am UTC](https://meta.discourse.org/t/how-do-url-topic-title-updates-work/83633/1 "2018-03-23T09:46:13Z")

</div>

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](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](https://www.example.com/t/today-was-interesting)

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

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 23, 2018, 9:52am UTC](https://meta.discourse.org/t/how-do-url-topic-title-updates-work/83633/2 "2018-03-23T09:52:22Z")

</div>

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

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)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [March 23, 2018, 9:53am UTC](https://meta.discourse.org/t/how-do-url-topic-title-updates-work/83633/3 "2018-03-23T09:53:41Z")

</div>

Sorry was about to update the post 😃

Thanks for explanation 🙂

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 8, 2024, 12:37pm UTC](https://meta.discourse.org/t/how-do-url-topic-title-updates-work/83633/4 "2024-06-08T12:37:42Z")

</div>

This topic was automatically closed after 2269 days. New replies are no longer allowed.
