From 9770ca861aab193c85a40a22acf9f623ed7bd73e Mon Sep 17 00:00:00 2001 From: jedi Date: Tue, 9 Apr 2024 21:30:30 +0200 Subject: [PATCH] forward unknown url to dashboard --- frontend/src/router.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/router.js b/frontend/src/router.js index 275216f..ee7cf6e 100644 --- a/frontend/src/router.js +++ b/frontend/src/router.js @@ -11,6 +11,7 @@ const routes = [ {path: '/friends', component: Friends, meta: {requiresAuth: true}}, {path: '/login', component: Login, meta: {requiresAuth: false}}, {path: '/register', component: Register, meta: {requiresAuth: false}}, + {path: '/:pathMatch(.*)*', redirect: '/'} ] const router = createRouter({