diff --git a/src/router/index.js b/src/router/index.js index 7f0a20b80..e9a8f2773 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -161,6 +161,11 @@ const routes = [ const router = createRouter({ history: createWebHistory("/fmg/"), routes, + //Cause "page" to begin at the top when route chanages. + scrollBehavior(to, from, savedPosition) { + // always scroll to top + return { top: 0 } + }, }); //---------------------------------------------------------- Router Functions ----------------------------------------------------------