[openstreetmap/openstreetmap-website] Add button for directions from location (PR #5635)
    Tom Hughes 
    notifications at github.com
       
    Sun Feb  9 15:12:30 UTC 2025
    
    
  
@tomhughes commented on this pull request.
> @@ -11,7 +11,7 @@ OSM.Search = function (map) {
     e.preventDefault();
     var query = $(this).closest("form").find("input[name=query]").val();
     if (query) {
-      OSM.router.route("/directions?from=" + encodeURIComponent(query) + OSM.formatHash(map));
+      OSM.router.route("/directions?to=" + encodeURIComponent(query) + OSM.formatHash(map));
This seems like quite a drastic change, and one that's unrelated to the main goal of this pull request?
-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5635#pullrequestreview-2604287905
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5635/review/2604287905 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250209/5a2d70c7/attachment.htm>
    
    
More information about the rails-dev
mailing list