[openstreetmap/openstreetmap-website] Build export download links from locale keys (PR #7271)

Marwin Hochfelsner notifications at github.com
Tue Jul 28 23:52:16 UTC 2026


@hlfan commented on this pull request.



>      $("#export_overpass").attr("href",
-                               `https://overpass-api.de/api/map?bbox=${sw.lng},${sw.lat},${ne.lng},${ne.lat}`);
+                               `${$("#export_overpass").data("baseUrl")}?bbox=${sw.lng},${sw.lat},${ne.lng},${ne.lat}`);

There's no need for baseUrl data:
```suggestion
    $("#export_overpass").prop("search", `?bbox=${sw.lng},${sw.lat},${ne.lng},${ne.lat}`);
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7271#pullrequestreview-4802794612
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/7271/review/4802794612 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260728/41da8a2e/attachment.htm>


More information about the rails-dev mailing list