A user reports an error 500 when accessing group message pages for groups with non-English names in a Japanese-language Discourse installation. The issue arises because the group_name parameter in URLs is not being URL-encoded properly, leading to routing errors. Despite attempts to fix it by changing the locale or updating the site, the problem persists. Another user confirms the same issue, and a developer suggests that the browser should automatically URL-encode the parameter, but this isn’t happening for the affected users. The issue appears to be related to the system’s handling of non-ASCII group names and locale settings. A workaround involves setting group names to their default English equivalents, as non-English names may not be properly converted back even after locale changes. The discussion reveals that enabling Unicode usernames may resolve the issue, as suggested by a user who experienced the same problem.
My discourse default language is set to Japanese.
And some of the default Group names have converted to Japanese, the group url (Slug) are in Japanese too.
For example, The staff group url is /g/スタッフ
Staff activity page’s url is /g/スタッフ/activity/posts
And all the groups with non-English name cannot visit the Group Message page. /g/スタッフ/messages
When try to access those pages, Server Error 500 message appear.
I have tried finding those text in customize text page, but I don’t think I can customize it.
It seem to be some kind of bugs, because when I change the language back to English and refresh the page, those Non-English Groups name are still remain in Japanese.
I have also tried set the discourse back to English and Trigger Jobs::EnsureDbConsistency in /sidekiq/scheduler but those group name still remain in Japanese.
My Wins 10 have both Japanese and Chinese language pack installed.
Currently, the Windows is set to Chinese as default.
My Chrome is in Japanese but Firefox is in English.
After multiple testing, I have found out some strange behavior of the group names.
For example, in Customize → Text, I set groups.default_names.trust_level_0 = トラストレベル0
The url will be /g/%E3%83%88%E3%83%A9%E3%82%B9%E3%83%88%E3%83%AC%E3%83%99%E3%83%AB4/messages, and I get 500 Internal Server Error.
If I change the groups.default_names.trust_level_0 = trust_level_0 and wait 1 day, The url will change back to /g/trust_level_0/messages/ and I can access the page without problem.
If I change to some other word, such as groups.default_names.trust_level_0 = Level 0 and wait 1 day, The url will remain unchanged. If the url was in Japanese it will remain in Japanese. If the url was in English, it will remain in English.
At the moment, I think I will just set all the groups names back to English name and it should fix the problem. The Groups name must have to be identical to the default English name, otherwise the url won’t change back to English.
For example, a few days ago I set groups.default_names.admins to `Admin’, because I forgot to type the “s” after Admin, after few days now, the url is still remains in Japanese.