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