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);