Description:
When using Discourse, I’ve encountered an issue with the search functionality when filtering by categories that have RTL Persian (Farsi) names, which are then automatically converted into URL-encoded slugs.
Steps to Reproduce:
- Create a category with a Persian name (e.g.,
استناد
). - Observe that Discourse automatically generates a URL-encoded slug for this category (e.g.,
%D8%A7%D8%B3%D8%AA%D9%86%D8%A7%D8%AF
). - Perform a general search for content within this category. Results are displayed correctly.
- Activate the search filters and narrow the search scope to this specific category.
- No results are found, even though content exists within the category and was visible in the general search.
Expected Behavior:
When filtering search results by a category with a URL-encoded Persian slug, the search should correctly identify and display all relevant content within that category, similar to how it functions when category slugs are in English.
Actual Behavior:
Filtering search results by categories with URL-encoded Persian slugs yields no results, effectively breaking the targeted search functionality for these categories. This issue does not occur when category slugs are in English.
Thank you for your attention to this matter. Please let me know if you require any further information.