This commit is contained in:
Gautier Pelloux-Prayer 2017-04-24 17:00:19 +02:00
parent ab85ec31e1
commit 4a431ac4bf
2 changed files with 2 additions and 2 deletions

View file

@ -273,7 +273,7 @@
urlHash = new L.Hash(map, mapLayers, function() {
var url = router.getUrl(routing.getWaypoints(), null);
return "&" + url.substr('brouter?'.length + 1);
return url.substr('brouter?'.length);
}, onHashChangeCb, onInvalidHashChangeCb);
routingOptions.on('update', urlHash.updateHash, urlHash);
nogos.on('update', urlHash.updateHash, urlHash);