X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/96babc10b0a3f2b834b047ecd9b48a3648ae4b43..9e25f5563d87fd6bce5b1679790d6d9c9e34e875:/app/assets/javascripts/router.js?ds=sidebyside diff --git a/app/assets/javascripts/router.js b/app/assets/javascripts/router.js index 5c444d46c..cadb6b628 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.replace(/\/$/, "") + window.location.search, + var currentPath = window.location.pathname.replace(/(.)\/$/, '$1') + window.location.search, currentRoute = routes.recognize(currentPath), currentHash = location.hash || OSM.formatHash(map);