osm-smart-menu icon indicating copy to clipboard operation
osm-smart-menu copied to clipboard

User name with spaces gets wrong osmcha url

Open Mashin6 opened this issue 2 years ago • 0 comments

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

Mashin6 avatar Dec 16 '21 19:12 Mashin6