X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6670de16a1981144869d7132e0bcc94a3b804513..8c82be0537e1bbdcbd7f20d5f26deaae09774281:/app/assets/javascripts/router.js diff --git a/app/assets/javascripts/router.js b/app/assets/javascripts/router.js index 2f76f2f18..9657549b1 100644 --- a/app/assets/javascripts/router.js +++ b/app/assets/javascripts/router.js @@ -113,8 +113,8 @@ OSM.Router = function(map, rts) { var path = url.replace(/#.*/, ''), route = routes.recognize(path); if (!route) return false; - window.history.pushState(OSM.parseHash(url), document.title, url); currentRoute.run('unload'); + window.history.pushState(OSM.parseHash(url), document.title, url); currentPath = path; currentRoute = route; currentRoute.run('pushstate', currentPath);