Fixing broken group links in non-English locales

Do groups have an ID that can be used to create a link to the group?

The problem I would like to solve is that links break when the forum uses a default locale that is not English.

On a forum that uses English as the default locale, everything works fine. For example, the Discobot tutorial links to the staff group using /groups/staff:

Users who have chosen, for example, “German” in their preferences are also taken to /groups/staff.

But when you set the default locale to for example German (and wait for the job that renames the groups), the group’s name is changed to “Team,” and the link no longer works.

Changing the link in the German translation to /groups/team doesn’t help because the link would still be broken for users who choose English in their preferences. It would also still be broken for users who choose German on a forum where the default locale is English.

3 Likes

Thanks for reporting this issue! The following PR should fix it.

2 Likes