diff --git a/docs/src/examples.js b/docs/src/examples.js index f3b3d17eb..7251e6cf4 100644 --- a/docs/src/examples.js +++ b/docs/src/examples.js @@ -28,7 +28,9 @@ router.afterEach(() => { if (router.currentRoute.name) { window.scrollTo(0, 0); } - Vue.nextTick(() => window.syncPath()); + if (!router.currentRoute.redirectedFrom) { + Vue.nextTick(() => window.syncPath()); + } }); window.vueRouter = router;