URLs for message to group no longer work

AI-generated summary

Users reported that URLs for pre-composing private messages to groups (e.g., https://discourse/new-message?groupname=Team) no longer work in Discourse 1.9.0.beta10, silently redirecting to the homepage without showing a composer or error. fefrei confirmed the issue affects group messaging links while user links still function, noting that even if messaging were disallowed, an error should appear. tobiaseigen confirmed the bug on their site, and yeonsh shared a screenshot showing the broken behavior. codinghorror requested gerhard to investigate. Gerhard fixed the issue in commit a540865 and noted a side effect: group names no longer appear in the composer’s autocomplete unless the group is set as mentionable, likely due to changes from this meta topic.

There’s a feature where you can create URLs to pre-compose a message to a user or a group, like this:

The user links still work, but the group links no longer work in Discourse 1.9.0.beta10. They silently redirect to the main URL, but neither a composer not an error message appear.

Original report here:

6 إعجابات

confirmed on my site. group is set so everyone can message it.

إعجاب واحد (1)

Thanks!
(Even if messaging were not allowed, an error message should appear. This was also working previously.)

إعجابَين (2)

We have same issue. When I tried to send private message to a group using URL I got:

إعجابَين (2)

Perhaps @gerhard can have a quick look.

إعجاب واحد (1)

Ok, this is fixed:
https://github.com/discourse/discourse/commit/a5408650bd693bf643c8d9d976ca56a338f9ca24

While testing I noticed that the autocomplete in the composer for new messages doesn’t show groups unless they are mentionable. That’s probably a sideeffect of Split into two settings: "Who can message and @mention this group?" - #5 by nbianca

10 إعجابات