# /my route のグループ名は、大文字と小文字を区別しないようにするべき

**URL:** https://meta.discourse.org/t/group-name-should-be-case-insensitive-in-my-route/373995
**Category:** Bug
**Created:** [2025 年 7 月 12 日午後 4:05 UTC](https://meta.discourse.org/t/group-name-should-be-case-insensitive-in-my-route/373995 "2025-07-12T16:05:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2025 年 7 月 12 日午後 4:05 UTC](https://meta.discourse.org/t/group-name-should-be-case-insensitive-in-my-route/373995/1 "2025-07-12T16:05:18Z")

</div>

[Make \u0026quot;/my\u0026quot; work for all possible links to current user](https://meta.discourse.org/t/make-my-work-for-all-possible-links-to-current-user/373973/) からの議論を続けます。

> [@\\"awesomerobot](#):
>
> `my/messages/group/my-group` を試してください。

このトピックを読んだときに最初に試したことなので、これがなぜ機能しなかったのか本当に混乱しました。

いくつかのテストの後、原因を見つけたと思います。グループ名に大文字が含まれていると、すぐに失敗します。

私の手順は常に同じです。

1. 受信トレイにアクセスします。
2. ドロップダウンを使用してグループの受信トレイに移動します。
3. `/u/Moin` を `/my` に置き換えます。
4. これが機能するかどうかを確認します。

大文字が含まれていない場合、これが機能することを確認します。  
グループ名: `group_name`  
受信トレイパス: `/u/Moin/messages/group/group_name`  
置き換え後: `/my/messages/group/group_name`  
 → ✔ `my` への置き換えは機能します。

大文字でテストします。  
グループ名: `Group_name`  
受信トレイパス: `/u/Moin/messages/group/Group_name`  
置き換え後: `/my/messages/group/Group_name`  
 → ❌ `my` への置き換えは機能しません。  
`/my/messages/group/group_name` を使用すると機能します。

グループ名: `group_Name`  
受信トレイパス: `/u/Moin/messages/group/group_Name`  
置き換え後: `/my/messages/group/group_Name`  
 → ❌ `my` への置き換えは機能しません。  
`/my/messages/group/group_name` を使用すると機能します。

名前に小文字に変換する必要があることをどのように知ればよいのでしょうか？

---

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [2025 年 7 月 12 日午後 4:16 UTC](https://meta.discourse.org/t/group-name-should-be-case-insensitive-in-my-route/373995/2 "2025-07-12T16:16:04Z")

</div>

いいえ、おそらくこれは大文字小文字を区別しないべきだと思います。この件は新しいトピックに分離しましょう（#Contribute > Bug でも #Contribute > UX でもどちらでも構いません）。

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [2025 年 7 月 13 日午前 5:21 UTC](https://meta.discourse.org/t/group-name-should-be-case-insensitive-in-my-route/373995/3 "2025-07-13T05:21:01Z")

</div>

[Route capitalization error in private\_messages\_group - #6](https://meta.discourse.org/t/route-capitalization-error-in-private-messages-group/171028/6) を思い出させます

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [2025 年 7 月 15 日午前 6:04 UTC](https://meta.discourse.org/t/group-name-should-be-case-insensitive-in-my-route/373995/5 "2025-07-15T06:04:43Z")

</div>

これで修正されるはずです。

> <https://github.com/discourse/discourse/commit/514431e04095a8d5454fee3687a0fe4bd9f14ff0>
>
> This changes allows the \`/my/\` prefix redirect to work when the name
> param conta…ins uppercase letters.
> 
> \#### For example:
> 
> \`/my/messages/group/MyGroup\` now redirects to
> \`/u/username/messages/group/MyGroup\`

---

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [2025 年 7 月 18 日午前 6:06 UTC](https://meta.discourse.org/t/group-name-should-be-case-insensitive-in-my-route/373995/6 "2025-07-18T06:06:14Z")

</div>

このトピックは3日後に自動的に閉じられました。返信はもう許可されていません。
