# Usernames in admin URLs cause routing problems

**URL:** <https://meta.discourse.org/t/usernames-in-admin-urls-cause-routing-problems/31825>\
**Category:** Bug\
**Created:** [6 Agosto , 2015 11:21 UTC](https://meta.discourse.org/t/usernames-in-admin-urls-cause-routing-problems/31825 "2015-08-06T11:21:23Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)\
**Post date:** [6 Agosto , 2015 11:21 UTC](https://meta.discourse.org/t/usernames-in-admin-urls-cause-routing-problems/31825/1 "2015-08-06T11:21:23Z")

</div>

In some places, usernames are used as part of URLs, for example in `admin/users/<username>`. Some usernames can therefore cause routing issues:

1. Register a user `list`.
2. Login as the administrator, go to the users list, open the details for this user.
3. Notice that you are on `admin/users/list`.
4. Reload the page. You get to the list of all users, since `admin/users/list` actually matches this route.

Many other URLs like `users/account-created` are safe, since `-` cannot be part of a username.

Here, this is only a small annoyance. I’m not sure whether there are more interesting cases where a similar problem can be triggered, though.

---

_[View the full topic](https://meta.discourse.org/t/usernames-in-admin-urls-cause-routing-problems/31825)._
