Bug in displaying title with arabic character

AI-generated summary

A bug was reported in the category home page view, where an Arabic character in a title was being misplaced. ckshen provided images to illustrate the issue, showing the correct title display versus the incorrect display in the category view. A fix was implemented by joffreyjaffeux through a GitHub commit, which was confirmed to resolve the issue by ckshen.

The category home page view puts the arabic character in between the ‘2’ and ‘h’. The post was 2 hours old.

How the title actually looks like.


How its displayed in the category view.

3 Likes

This should be fixed by

https://github.com/discourse/discourse/commit/9f558d7e74118d8dc0cb1db04f2b7200f5a3618c

This is a little bit touchy to modify this code, I tried various combinations an didn’t see any regression, please let me know if something doesn’t seem right.

8 Likes

Thank you for the fix!

3 Likes

This topic was automatically closed after 6 days. New replies are no longer allowed.