theCrag / website

theCrag.com: Add your voice and help guide the development of the world's largest collaborative rock climbing & bouldering platform
https://www.thecrag.com/
109 stars 8 forks source link

Duplicate results in Area search if search term matches alternate names #3608

Open Mdemaillard opened 4 years ago

Mdemaillard commented 4 years ago

What happened? While searching for Bronkies, i see 2 identical results. Either lead to the same URL. Refining the search term to match only 1 of the 2 alternate names for the crag lead to only 1 result shown.

Example url(s) to reproduce the problem: https://www.thecrag.com/climbing/south-africa/areas/search/bronk/?sortby=at,desc https://www.thecrag.com/climbing/south-africa/areas/search/bronkie/?sortby=at,desc https://www.thecrag.com/climbing/south-africa/areas/search/bronkho/?sortby=at,desc

same with Boven, also 2 alternate names matched https://www.thecrag.com/climbing/south-africa/areas/search/boven/?sortby=at,desc

Ideally also provide screenshots: image

What you expected:

The expected behaviour is displayed if the search concerns a route. Ex: https://www.thecrag.com/climbing/south-africa/bronkhorstspruit/route/16376401 https://www.thecrag.com/climbing/south-africa/bronkhorstspruit/routes/search/dilemma Searching Dilemma or dilemma returns only 1 time the correct route, while matching both its names.

rouletout commented 3 years ago

Normal search only displays it once, only if you already select "Area" it will show twice as above