IFRCGo / go-web-app

GO Web application! GO is a Red Cross Red Crescent platform to connect information on emergency needs with the right response.
https://go.ifrc.org
MIT License
5 stars 0 forks source link

[PROD] Different search results with and without accented letters (Türkiye and Côte d'Ivoire) #621

Open esario opened 5 months ago

esario commented 5 months ago

Issue

If I search for Turkiye (instead of Türkiye) or Cote d'Ivoire (instead of Côte d'Ivoire) because I might not know how to type those accented letters with my keyboard, the search doesn't return correct results.

Steps to reproduce

Type Turkiye or Cote d'Ivoire in the main search box or in the countries dropdown and make note of the different search results.

image

image

image

image

image

image

image

Expected behaviour

The search should return identical results regardless of the accents.

Impact

There are many search results for country names with and without accents, so users might not realise they're missing part of the search results with their search string. The impact is further exacerbated by legacy country names (Turkey, Turkiye, and Türkiye all return different results).

Severity

TBD.

Is there a workaround?

None identified.

nanometrenat commented 5 months ago

With respect to country names and search results (not specific to accents) since the move to prefixing emergency pages with the country iso code now one can't find emergencies for that country - e.g. if I search for "Japan Earthquake" I only get old emergencies and not JPN: Noto Peninsula Earthquake 01-2024. Worth looking at this at the same time as country variants (though it's separate to accents)