teambtcmap / btcmap.org

Free and open source bitcoin map web application
https://btcmap.org
GNU Affero General Public License v3.0
41 stars 11 forks source link

International characters break Communities page #130

Closed jesterhodl closed 4 months ago

jesterhodl commented 4 months ago

Describe the bug Communities with international characters, like the French, or Polish 21 communities can get messed up. See repro steps.

To Reproduce

  1. Go to: https://btcmap.org/communities
  2. From the dropdown pick "Dwadzieścia Jeden"
  3. The page reloads, everything's fine so far. The address bar shows: https://btcmap.org/communities#Dwadzie%C5%9Bcia%20Jeden
  4. So now you think you can go and share the URL. So you go visit it: https://btcmap.org/communities#Dwadzie%C5%9Bcia%20Jeden
  5. But it loads with errors:
  1. It does fix itself only after you pick the right value from the dropdown

Expected behavior When using a link generated by the btcmap like these:

The international characters should be handled in such a way that the dropdown detects them and page loads correctly.

Screenshots Dropdown is OK after first visit: image

But when you use visit the generated link it will mess up the name and won't load the communities: image

Additional context None

secondl1ght commented 4 months ago

Thanks for the detailed report on this! We'll get this fixed ASAP.