[openstreetmap/openstreetmap-website] Workaround for iD "bug" #10761 (PR #5661)
Martin Raifer
notifications at github.com
Wed Feb 12 15:25:04 UTC 2025
@tyrasd commented on this pull request.
> @@ -33,5 +33,5 @@ $(document).ready(function () {
if (id.data("gpx")) params.set("gpx", id.data("gpx"));
- id.attr("src", id.data("url") + "#" + params);
+ id.attr("src", id.data("url") + "#" + params.toString().replace("+", "%20"));
I've fixed the `replace` regex to do this for all `+` characters. Thanks for spotting this.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5661#discussion_r1952877147
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5661/review/2612323796 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250212/fbcb9d7b/attachment.htm>
More information about the rails-dev
mailing list