Fix stripping of trailing slash
This commit is contained in:
parent
96babc10b0
commit
a30a29f41a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue