diff --git a/modules/createRouter.js b/modules/createRouter.js index a06a0a2713..22a55bd8f1 100644 --- a/modules/createRouter.js +++ b/modules/createRouter.js @@ -344,7 +344,7 @@ function createRouter(options) { // Record the scroll position as early as possible to // get it before browsers try update it automatically. - if (prevPath && action !== LocationActions.REPLACE) + if (prevPath && action === LocationActions.PUSH) this.recordScrollPosition(prevPath); var match = this.match(path);