# Route capitalization error in private\_messages\_group

**URL:** <https://meta.discourse.org/t/route-capitalization-error-in-private-messages-group/171028>\
**Category:** Bug\
**Created:** [November 23, 2020, 3:45pm UTC](https://meta.discourse.org/t/route-capitalization-error-in-private-messages-group/171028 "2020-11-23T15:45:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)\
**Post date:** [November 25, 2020, 1:19am UTC](https://meta.discourse.org/t/route-capitalization-error-in-private-messages-group/171028/3 "2020-11-25T01:19:56Z")

</div>

If you just create notifications directly in the console, the link respects capitalization (this works even if the data is fake)

```plaintext
Notification.create!(
  user_id: 1,
  notification_type: Notification.types[:group_message_summary],
  data: { inbox_count: 5, group_name: "MyGroup", group_id: 41, username: 'angus' }.to_json
)

```

 ![Screenshot at Nov 25 12-14-44](https://global.discourse-cdn.com/meta/original/3X/c/0/c0105c63333e8d047b815e4a984859c0220088d2.jpeg)

The issue may on the creation side of things, i.e. in the post alerter: [discourse/app/services/post\_alerter.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/app/services/post_alerter.rb#L252)

However, I can’t seem to repro this one.

---

_[View the full topic](https://meta.discourse.org/t/route-capitalization-error-in-private-messages-group/171028)._
