From c95a7f32ee2a21b66c9887658f504b6f1a0a2464 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Thu, 23 Aug 2018 11:28:33 +0200 Subject: [PATCH] Adjust scroll behavior on route change --- client/src/router/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/router/index.js b/client/src/router/index.js index 09214131..a7c932b4 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -29,5 +29,8 @@ const routes = [ Vue.use(Router) export default new Router({ routes, - mode: 'history' + mode: 'history', + scrollBehavior(to, from, savedPosition) { + return {x: 0, y: 0} + } })