From fcb07d27ec3fed6dfbd52fa079530ef3cc4b667c Mon Sep 17 00:00:00 2001 From: tarunsinghofficial Date: Tue, 3 Sep 2024 12:30:27 +0530 Subject: [PATCH] fix: added the url pushstate when search for a stop/route --- src/components/map/GoogleMap.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/map/GoogleMap.svelte b/src/components/map/GoogleMap.svelte index 1c0cc0d..c76eb94 100644 --- a/src/components/map/GoogleMap.svelte +++ b/src/components/map/GoogleMap.svelte @@ -93,6 +93,7 @@ // show the same stop twice on the map if (stop.id != selectedStopID) { addMarker(stop); + pushState(`/stops/${stop.id}`); map.setCenter({ lat: stop.lat, lng: stop.lon }); } }