# 404 when changing username then going to user profile

**URL:** https://meta.discourse.org/t/404-when-changing-username-then-going-to-user-profile/116667
**Category:** Bug
**Created:** [5월 2, 2019, 8:09오전 UTC](https://meta.discourse.org/t/404-when-changing-username-then-going-to-user-profile/116667 "2019-05-02T08:09:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)
#### Post date: [5월 2, 2019, 8:09오전 UTC](https://meta.discourse.org/t/404-when-changing-username-then-going-to-user-profile/116667/1 "2019-05-02T08:09:40Z")

</div>

Repro steps:

1. Change a user’s username.
2. After successfully changing the username, click on Show Public Profile
3. It should return a 404 page.

[https://media.giphy.com/media/iF0Wvpyo76EpC3YX5B/source.mov](https://media.giphy.com/media/iF0Wvpyo76EpC3YX5B/source.mov)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [5월 2, 2019, 9:41오전 UTC](https://meta.discourse.org/t/404-when-changing-username-then-going-to-user-profile/116667/3 "2019-05-02T09:41:33Z")

</div>

This is so minor. You’ve changed the username so you’ve changed the route to the page. It’s only possible for a moderator to do this.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [5월 2, 2019, 9:44오전 UTC](https://meta.discourse.org/t/404-when-changing-username-then-going-to-user-profile/116667/4 "2019-05-02T09:44:06Z")

</div>

Will only check if I can oneline fix it, and consider WONTFIX otherwise.

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [5월 2, 2019, 11:26오전 UTC](https://meta.discourse.org/t/404-when-changing-username-then-going-to-user-profile/116667/6 "2019-05-02T11:26:23Z")

</div>

What happens for the user when an admin updates their username? Do their links under the user menu to their profile, preferences, etc. break?

I’ve been facing a similar bug in an authentication plugin I’m working on, a refresh is required to fix things for a user when the plugin updates their username.

@j.jaffeux if the fix is more involved, I’m happy to submit a PR as I imagine it would fix things in my plugin too
