Fix stripping of trailing slash

This commit is contained in:
Tom Hughes 2013-12-01 22:30:34 +00:00
parent 96babc10b0
commit a30a29f41a

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