RTL issue with @ placement in user names

AI-generated summary

User serkhelesheyi reported a bug where the “@” symbol is incorrectly rendered on the right side of English (LTR) usernames when the site interface is set to an RTL language (e.g., Persian/Arabic) within the Horizon theme. The user clarified that this issue is not specific to Horizon but affects all themes, occurring only under specific conditions: when the text line begins with a Persian character and another Persian character immediately precedes the username serkhelesheyi. While user Moin initially could not reproduce the issue, serkhelesheyi explained that the failure to replicate was due to the test text starting with the English word “by” instead of Persian characters. User chapoi confirmed the scope of the issue, and Moin noted that missing Horizon translations in version 2026.2 may have complicated reproduction. The bug has been addressed by a fix in pull request discourse/discourse#37723 as confirmed by zogstrip.

Bug Report: Misplacement of “@” in English usernames under RTL with Horizon theme


Hello

I’m experiencing a display issue when using the Horizon theme with the site language set to RTL. The problem specifically affects English usernames (LTR).

What happens:

  • The “@” symbol is always rendered on the right side of the username, regardless of whether the username is RTL or LTR (in high context topic cards)
  • This right-side placement is correct for RTL usernames (e.g., Persian/Arabic). However, for English (LTR) usernames, the “@” should appear on the left side in RTL contexts, not on the right.

What I expect:

The “@” symbol should appear on the right for RTL usernames (as it currently does) and should appear on the left for English/LTR usernames when the site is in RTL mode.

Thank you for looking into this!


image
image

Is this Horizon specific? As in, it doesn’t happen in the Foundation theme?

The issue appears to be specific to Horizon; in the Foundation theme, there is no @ prefix before usernames, so the error does not occur.

What about if I tag someone? Like @serkhelesheyi ?

I cannot reproduce that. This is what I see here on Meta after changing my interface to Arabic:

2 Likes

If I try to post exactly the paragraph you wrote, the error only occurs under the following condition:
if the first character of the paragraph is in Persian and there is another Persian character (whether with or without a space) immediately before the username, then the issue I mentioned will happen, and the @ symbol will appear on the right side of the username.

Two images have been shared: in one you can see the text as written in the composer, and in the other you can see how the same text is displayed in the forum

and this only happens on Horizon?

The reason you didn’t encounter the issue is that the line containing the username starts with the word ‘by’. The problem only appears under the two specific conditions I mentioned earlier.

No, this happens in all the themes I have, not just Horizon.

Yes, that’s what I thought, hence I asked if it was Horizon-specific at the start. Moved it into its own topic.

2 Likes

Ah, then it’s currently difficult for me to reproduce, because the translations for Horizon were lost recently. They are still in version 2026.1 but are missing in 2026.2

1 Like

Thanks for the report @serkhelesheyi - this will be fixed by

https://github.com/discourse/discourse/pull/37723

3 Likes

This topic was automatically closed after 21 hours. New replies are no longer allowed.