diff --git a/components/ForeignPronoun.vue b/components/ForeignPronoun.vue index 504a4a1f..cb650e58 100644 --- a/components/ForeignPronoun.vue +++ b/components/ForeignPronoun.vue @@ -19,7 +19,7 @@ export default { try { const pronounName = await this.$axios.$get(`/remote-pronouns-name/${this.locale}/${this.pronounWithoutDomain}`); if (!pronounName.startsWith(' { router.get('/pronouns-name/:pronoun*', handleErrorAsync(async (req, res) => { const pronoun = buildPronoun( parsePronouns(loadTsv('pronouns/pronouns')), - req.params.pronoun + req.params[0], + (req.params.pronoun + req.params[0]).toLowerCase(), ); if (!pronoun) { return res.status(404).json({error: 'Not found'}); } - return res.json(pronoun.name().toLowerCase()); + return res.json(pronoun.name()); })); router.get('/remote-pronouns-name/:locale/:pronoun*', handleErrorAsync(async (req, res) => {