[openstreetmap/openstreetmap-website] gpx parameter in editor URL causes Application error (Issue #3540)
Nikhil VJ
notifications at github.com
Tue May 3 02:40:54 UTC 2022
Spotted this in the code: https://github.com/openstreetmap/openstreetmap-website/blob/318229079d21099f0e0de72a3e11aa55627f09a1/app/assets/javascripts/edit/id.js.erb#L43
```
} else if (hashParams.gpx) {
params.gpx = hashParams.gpx;
}
```
wondered if putting the gpx param after **#** instead of a **?** might do something, so tried:
https://www.openstreetmap.org/edit#gpx=https%3A//server.nikhilvj.co.in/pmgsy/gpx/1445.gpx
And it works!

So.. solved! It was a hash param, not a direct url param, thats all. Thanks!
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3540#issuecomment-1115558588
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/3540/1115558588 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220502/cea10748/attachment.htm>
More information about the rails-dev
mailing list