X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/640ff57465b5288a183e1343285c1550b1a0d1a8..96babc10b0a3f2b834b047ecd9b48a3648ae4b43:/app/assets/javascripts/router.js diff --git a/app/assets/javascripts/router.js b/app/assets/javascripts/router.js index 8661f95dc..5c444d46c 100644 --- a/app/assets/javascripts/router.js +++ b/app/assets/javascripts/router.js @@ -91,7 +91,7 @@ OSM.Router = function(map, rts) { } }; - var currentPath = window.location.pathname + window.location.search, + var currentPath = window.location.pathname.replace(/\/$/, "") + window.location.search, currentRoute = routes.recognize(currentPath), currentHash = location.hash || OSM.formatHash(map);