X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3cd5f45e08d977d04a778ab8802f71df85edc314..69fdcfd163835c57e56d086486404deb3dc8b928:/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);