Skip to content

A self-hosted media server and file management system

fix: router infinitely redirects /config when not logged in

aminnausin7c14e6472755
diff --git a/resources/js/router/index.ts b/resources/js/router/index.ts
index 5016b520..25e481b0 100644
--- a/resources/js/router/index.ts
+++ b/resources/js/router/index.ts
@@ -124,12 +124,13 @@ export const router = createRouter({
{
path: '/config/:tab/:id?',
name: 'config',
- meta: { protected: true, redirect: '/config/general' },
+ meta: { protected: true, redirect: '/settings' },
component: () => import('@/views/ConfigView.vue'),
props: true,
},
{
path: '/config',
+ meta: { protected: true, redirect: '/settings' },
redirect: '/config/general',
},
{