From 53d2191f0bc15961cdc70412ffc9d4438ccc2600 Mon Sep 17 00:00:00 2001
From: VIktorGrev <viktog2210@gmail.com>
Date: Fri, 19 Apr 2024 11:43:47 +0200
Subject: [PATCH] fix: Fixing routing to home

---
 src/router/index.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 838c9fa..64d6aa4 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();
   }
-- 
GitLab