]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/router.js
Restore legacy bbox/min/max params support
[rails.git] / app / assets / javascripts / router.js
index 8661f95dccc918ee95d18fd54d0242281445f2e5..cadb6b628f1b672fa9dd46aaa6a2adf5279ddca1 100644 (file)
@@ -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);