/my/messages/group/GROUP_NAME link doesn't work


(Tobias Eigen) #1

On my site, the following link does not work:

Global Legal Empowerment Network Community Discussions (private)

but this one does:

Global Legal Empowerment Network Community Discussions (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


(Aryan Raj) #2

I think the reason mostly because of this line in users#my_redirect

raise Discourse::NotFound if params[:path] !~ /^[a-z-/]+$/

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. :smiley:

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


(Tobias Eigen) #3

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

Global Legal Empowerment Network Community Discussions


(Aryan Raj) #4

I have added a PR for this


(Kane York) #5