URL doesn't update when creating a new category

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.


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?


Done via https://github.com/discourse/discourse/commit/95df15bad960be35bcf438405919e379c9a652c2.