Reassigning to a group creates a /u/ link in the @group mention

It’s a small bug :bug: in the official Assign plugin.

Steps to repro:

  1. Assign a topic to yourself

  2. Click “Unassign…”

  3. Click “Edit assignment…”

  4. Choose a group and click “Edit”

  5. The @group mention from the small action message links to /u/ instead of /g/.

For example:

image

@cherries here links to /u/cherries instead of /g/cherries.

It only happens in reassigns, not in assigns.

2 Likes

It looks like it misses api.addGroupPostSmallActionCode("reassigned_group"); here:

Related Discourse code:

2 Likes

I added this line on my dev install and it indeed seems to fix the issue :+1:

2 Likes

Awesome, would you be able to submit a PR :hugs:

3 Likes

Sure!

3 Likes

Thanks @Arkshine !!!

This topic was automatically closed after 2 days. New replies are no longer allowed.