RTL issue with @ placement in user names

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