# /my/messages/group/GROUP\_NAME link doesn't work

**URL:** https://meta.discourse.org/t/my-messages-group-group-name-link-doesnt-work/41198
**Category:** Bug
**Created:** [March 17, 2016, 2:25pm UTC](https://meta.discourse.org/t/my-messages-group-group-name-link-doesnt-work/41198 "2016-03-17T14:25:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [March 17, 2016, 2:25pm UTC](https://meta.discourse.org/t/my-messages-group-group-name-link-doesnt-work/41198/1 "2016-03-17T14:25:31Z")

</div>

On my site, the following link does not work:

> [https://community.namati.org/my/messages/group/namati\_globalnetwork](https://community.namati.org/my/messages/group/namati_globalnetwork) (private)

but this one does:

> [https://community.namati.org/users/tobiaseigen/messages/group/namati\_globalnetwork](https://community.namati.org/users/tobiaseigen/messages/group/namati_globalnetwork) (private)

They should both link to the same place, just like /my/messages or /my/messages/sent links to /users/tobiaseigen/messages and /users/tobiaseigen/messages/sent

---

<div class="post-metadata">

### Author: ![aryanraj](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@aryanraj](https://meta.discourse.org/u/aryanraj)
#### Post date: [March 19, 2016, 11:04am UTC](https://meta.discourse.org/t/my-messages-group-group-name-link-doesnt-work/41198/2 "2016-03-19T11:04:33Z")

</div>

I think the reason mostly because of [this line](https://github.com/discourse/discourse/blob/master/app/controllers/users_controller.rb#L168) in users#my\_redirect

> raise Discourse::NotFound if params[:path] !~ /\[1\]+$/

Underscore are not present in regex. So group names with underscore will not be redirected. Not sure why underscore is not added.

I would like to add PR unless there was some other reason for this. 😃

Edit: Numbers are also present in the regex. Should it also be added?

* * *

1. a-z-/

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [March 19, 2016, 11:59am UTC](https://meta.discourse.org/t/my-messages-group-group-name-link-doesnt-work/41198/3 "2016-03-19T11:59:46Z")

</div>

Looks like you are right about the underscores. Other group inboxes work fine, e.g

> [https://community.namati.org/users/tobiaseigen/messages/group/moderators](https://community.namati.org/users/tobiaseigen/messages/group/moderators)

---

<div class="post-metadata">

### Author: ![aryanraj](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@aryanraj](https://meta.discourse.org/u/aryanraj)
#### Post date: [March 20, 2016, 8:00am UTC](https://meta.discourse.org/t/my-messages-group-group-name-link-doesnt-work/41198/4 "2016-03-20T08:00:01Z")

</div>

I have added a PR for this  
[https://github.com/discourse/discourse/pull/4096](https://github.com/discourse/discourse/pull/4096)

---

<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: [March 27, 2016, 3:29am UTC](https://meta.discourse.org/t/my-messages-group-group-name-link-doesnt-work/41198/5 "2016-03-27T03:29:30Z")

</div>


