X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/68a3df4d53c84508bf443058040379c3a18eb1a7..d5a765588f5818bf46575392fa7ccbd4af0de574:/app/assets/javascripts/router.js diff --git a/app/assets/javascripts/router.js b/app/assets/javascripts/router.js index 8661f95dc..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 + window.location.search, + var currentPath = window.location.pathname.replace(/(.)\/$/, '$1') + window.location.search, currentRoute = routes.recognize(currentPath), currentHash = location.hash || OSM.formatHash(map);