From 9385e00cd9650c4562a673b5bc048ba748756255 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Wed, 12 Mar 2025 03:11:25 +0300 Subject: [PATCH] Don't crop coordinates when replacing directions url --- app/assets/javascripts/index/directions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index aee262e02..d2741d02b 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -145,7 +145,7 @@ OSM.Directions = function (map) { OSM.router.replace("/directions?" + new URLSearchParams({ engine: chosenEngine.id, - route: points.map(p => OSM.cropLocation(p, map.getZoom()).join()).join(";") + route: points.map(p => `${p.lat},${p.lng}`).join(";") })); // copy loading item to sidebar and display it. we copy it, rather than -- 2.39.5