diff --git a/src/router/index.ts b/src/router/index.ts index 838c9fa0ee1c4f38dd4484d0d95cad3041c5318c..64d6aa4df586c56317e580fd2367b79edfbb3ce3 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -16,7 +16,7 @@ const routes = [ { path: '', name: 'home', - component: () => import('../views/HomeView.vue'), + component: () => import('../views/SavingGoalView/RoadmapView.vue'), }, { path: 'news', @@ -137,7 +137,7 @@ router.beforeEach((to, from, next) => { if (requiresAuth && !isAuthenticated) { next({ name: 'login', query: { redirect: to.fullPath } }); } else if (requiresAdmin && userRole !== 'admin') { - next({ name: 'home' }); + next({ name: 'unauthorized' }); } else { next(); }