jgpacker / osm-smart-menu

An OpenStreetMap webextension for Firefox and Chrome
GNU General Public License v3.0
56 stars 12 forks source link

User name with spaces gets wrong osmcha url #182

Open Mashin6 opened 2 years ago

Mashin6 commented 2 years ago

If a user has space in their user name, trying to link from thier osm.org profile to osmcha.org creates wrong url.

e.g. https://www.openstreetmap.org/user/Bruno%20Girard

gets parsed into https://osmcha.org/?filters=%7B%22users%22:[%7B%22label%22:%22%22,%22value%22:%22Bruno%2520Girard%22%7D]%7D

Correct should be https://osmcha.org/?filters=%7B%22users%22:[%7B%22label%22:%22%22,%22value%22:%22Bruno%20Girard%22%7D]%7D