# URL doesn't update when creating a new category

**URL:** https://meta.discourse.org/t/url-doesnt-update-when-creating-a-new-category/173307
**Category:** Bug
**Created:** [December 14, 2020, 9:59pm UTC](https://meta.discourse.org/t/url-doesnt-update-when-creating-a-new-category/173307 "2020-12-14T21:59:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [December 14, 2020, 9:59pm UTC](https://meta.discourse.org/t/url-doesnt-update-when-creating-a-new-category/173307/1 "2020-12-14T21:59:33Z")

</div>

Steps (note: was executed in mobile view):

- Categories, Create new category
- Enter a name, choose a color
- Click on create

Expected: URL updates from `/new-category` to the correct category edit URL

Actual: URL stays as `/new-category` and the Create button changes to “Save Changes” with no other indication that it worked

I think this is mostly a UX issue: I wasn’t expecting it to work that fast, so the UI response was underwhelming.

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [December 22, 2020, 7:49pm UTC](https://meta.discourse.org/t/url-doesnt-update-when-creating-a-new-category/173307/2 "2020-12-22T19:49:04Z")

</div>

I think it’s a good idea to transition to the correct URL after the category is saved. That way someone can copy and paste the URL to someone else. Plus it is less confusing.

@pmusaraj can you take a look?

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [January 5, 2021, 3:56pm UTC](https://meta.discourse.org/t/url-doesnt-update-when-creating-a-new-category/173307/4 "2021-01-05T15:56:17Z")

</div>

Done via [UX: transition to edit URL when adding a category (#11634) · discourse/discourse@95df15b · GitHub](https://github.com/discourse/discourse/commit/95df15bad960be35bcf438405919e379c9a652c2).

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [January 5, 2021, 3:56pm UTC](https://meta.discourse.org/t/url-doesnt-update-when-creating-a-new-category/173307/5 "2021-01-05T15:56:20Z")

</div>


