[openstreetmap/openstreetmap-website] Update to iD v2.30 (PR #5102)
Martin Raifer
notifications at github.com
Wed Aug 21 11:22:01 UTC 2024
@tyrasd commented on this pull request.
> @@ -10,7 +10,7 @@ $(document).ready(function () {
var params = {};
if (mapParams.object) {
- params.id = mapParams.object.type[0] + mapParams.object.id;
+ params.id = mapParams.object.type + '/' + mapParams.object.id;
FYI: this also resolves a bug which was previously causing unrelated OSM nodes from being loaded when the user had a no**t**e open (e.g. when opening `osm.org/edit?note=1`, the built-in iD would load `node/1` instead).
To fix that, this is now using a lightly different syntax for the hash parameter `id` (see [docs](https://github.com/openstreetmap/iD/blob/develop/API.md#url-parameters)).
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5102#pullrequestreview-2250523050
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5102/review/2250523050 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240821/e3b41a1f/attachment.htm>
More information about the rails-dev
mailing list