# Case sensitivity in links to groupname

**URL:** https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596
**Category:** Bug
**Created:** [April 11, 2020, 3:49am UTC](https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596 "2020-04-11T03:49:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 11, 2020, 3:49am UTC](https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596/1 "2020-04-11T03:49:36Z")

</div>

In one of the volunteer groups we’re using links to pre-populate PMs to groups.

A link to a `username` such as `stephen` corrects the capitalization in the PM window.

[example 1](https://meta.discourse.org/new-message?username=codinghorror&title=testtitle&body=bodytext)  
[example 2](https://meta.discourse.org/new-message?username=CODINGHORROR&title=testtitle&body=bodytext)

 ![A](https://global.discourse-cdn.com/meta/original/3X/9/f/9f512bb09c3d64e19bef5f8ef0d86554e1b9c1f5.png) ![B](https://global.discourse-cdn.com/meta/original/3X/b/9/b9d1786dca6012504c71be007c17df530c68cf64.png)

it doesn’t happen for a `groupname`:

[example 1](https://meta.discourse.org/new-message?groupname=team&title=testtitle&body=bodytext)  
[example 2](https://meta.discourse.org/new-message?groupname=Team&title=testtitle&body=bodytext)

 ![C](https://global.discourse-cdn.com/meta/original/3X/1/9/19671c9bfb36b6b15b9a8649331454518fa0ce1d.png) ![D](https://global.discourse-cdn.com/meta/original/3X/f/c/fc0d67aeb528321f0ddcc11d25d01cef4f47e6dc.png)

And only throws an error when you go to send the PM:

> One of the users you are sending this message to could not be found.

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [April 13, 2020, 9:16pm UTC](https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596/2 "2020-04-13T21:16:07Z")

</div>

This bug is not probably limited only to groups.

I’ve got this error when sending to multiple users at once from copy/pasted list. All usernames were correctly inserted (and have their X next to a name) so I suppose that they _were_ found.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/8/f8e04d7509d04c6d261baebe329dbad5411ed704.png)

Haven’t seen the actual code and I don’t know if it is workable, but it would be great if this error could specify which username in particular it has on mind 🙂 ..

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [April 13, 2020, 10:22pm UTC](https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596/3 "2020-04-13T22:22:08Z")

</div>

I did test usernames above and it appeared to work, as a follow-up I will test multiple simultaneous recipients.

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [April 14, 2020, 1:43pm UTC](https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596/4 "2020-04-14T13:43:21Z")

</div>

Thanks! My usernames are not corrected.. But I’m not on the very latest. This must be new fix.. I’ll update.

---

<div class="post-metadata">

### Author: ![Overgrow](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overgrow/32/478189_2.png) [@Overgrow](https://meta.discourse.org/u/Overgrow)
#### Post date: [April 15, 2020, 12:20pm UTC](https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596/5 "2020-04-15T12:20:34Z")

</div>

Strange. I’ve updated to latest and this issue persists..

I’m pretty confused, because it seems like I can add even non-existing users and (x) is displayed next to their name.. So usernames are not corrected automatically when inserting into PM?

I think that adding information about which user was not found into error message would be very helpful.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/8/f8e04d7509d04c6d261baebe329dbad5411ed704.png)

My use case is inserting 50 members by copy-paste and there are evidently some letters not written in proper case. The only solution for me is to invite them into message one by one.

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [May 25, 2020, 1:38pm UTC](https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596/7 "2020-05-25T13:38:00Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/e8fb9d406667c758cba0f7b1cc779e1ceb352c4c](https://github.com/discourse/discourse/commit/e8fb9d406667c758cba0f7b1cc779e1ceb352c4c)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [May 26, 2020, 12:30pm UTC](https://meta.discourse.org/t/case-sensitivity-in-links-to-groupname/147596/8 "2020-05-26T12:30:02Z")

</div>

This topic was automatically closed after 22 hours. New replies are no longer allowed.
