diff --git a/src/history/abstract.js b/src/history/abstract.js index 9437182e7..1add43d01 100644 --- a/src/history/abstract.js +++ b/src/history/abstract.js @@ -51,7 +51,7 @@ export class AbstractHistory extends History { this.updateRoute(route) }, err => { - if (isRouterError(err, NavigationFailureType.NAVIGATION_DUPLICATED)) { + if (isRouterError(err, NavigationFailureType.duplicated)) { this.index = targetIndex } } diff --git a/src/history/base.js b/src/history/base.js index 2b9d71cae..6911b71f6 100644 --- a/src/history/base.js +++ b/src/history/base.js @@ -114,7 +114,7 @@ export class History { // When the user navigates through history through back/forward buttons // we do not want to throw the error. We only throw it if directly calling // push/replace. That's why it's not included in isError - if (!isRouterError(err, NavigationFailureType.NAVIGATION_DUPLICATED) && isError(err)) { + if (!isRouterError(err, NavigationFailureType.duplicated) && isError(err)) { if (this.errorCbs.length) { this.errorCbs.forEach(cb => { cb(err)