]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/router.js
Fix URL updating in Potlatch 1
[rails.git] / app / assets / javascripts / router.js
index 5c444d46cccfc9bd20bf9ecedad65760ca3fa648..cadb6b628f1b672fa9dd46aaa6a2adf5279ddca1 100644 (file)
@@ -91,7 +91,7 @@ OSM.Router = function(map, rts) {
     }
   };
 
-  var currentPath = window.location.pathname.replace(/\/$/, "") + window.location.search,
+  var currentPath = window.location.pathname.replace(/(.)\/$/, '$1') + window.location.search,
     currentRoute = routes.recognize(currentPath),
     currentHash = location.hash || OSM.formatHash(map);