[openstreetmap/openstreetmap-website] Add button for directions from location (PR #5635)

Marwin Hochfelsner notifications at github.com
Wed Feb 19 15:43:06 UTC 2025


@hlfan commented on this pull request.



> @@ -11,7 +11,7 @@ OSM.Search = function (map) {
     e.preventDefault();
     const query = $(this).closest("form").find("input[name=query]").val();
     let search = "";
-    if (query) search = "?" + new URLSearchParams({ from: query });
+    if (query) search = "?" + new URLSearchParams({ to: query });

This isn't part of #5671, should I make a separate PR for commit https://github.com/openstreetmap/openstreetmap-website/pull/5635/commits/1cbe5968808f831e40280986ef475a50cd5f65b8 alone?

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

Message ID: <openstreetmap/openstreetmap-website/pull/5635/review/2627233064 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250219/4403e785/attachment.htm>


More information about the rails-dev mailing list