Strip any trailing slash from the initial location
This commit is contained in:
parent
640ff57465
commit
96babc10b0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue