]> git.openstreetmap.org Git - rails.git/commit
workaround for iD bug #10761
authorMartin Raifer <martin@raifer.tech>
Wed, 12 Feb 2025 13:08:19 +0000 (14:08 +0100)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2025 13:08:19 +0000 (14:08 +0100)
commit051ae5953f18e2bcc4a4612e9851c95c0f86842e
tree95b61f4106f443a07f1eb1df896b74f7a2e84746
parentd642adc6e48798a6daa9a02a8a148a22e4d1f300
workaround for iD bug #10761

the current version of iD (v2.31, before the fix for https://github.com/openstreetmap/iD/issue/10761: https://github.com/openstreetmap/iD/pull/10766), does not fully support `x-www-form-urlencoded` "query-style" strings in the hash: Specifically, spaces encoded as `+` will not be decoded back to ` `.

This workaround essentially temporarily reverts the behaviour of the website to the state before #5592, and can be dropped again with the next minor version upgrade of iD (`v2.32`).
app/assets/javascripts/edit/id.js.erb