diff --git a/src/history/html5.js b/src/history/html5.js index 55df57fbd..37163703b 100644 --- a/src/history/html5.js +++ b/src/history/html5.js @@ -17,9 +17,10 @@ export class HTML5History extends History { } window.addEventListener('popstate', e => { + const current = this.current this.transitionTo(getLocation(this.base), route => { if (expectScroll) { - handleScroll(router, route, this.current, true) + handleScroll(router, route, current, true) } }) })