diff --git a/middleware/isLoggedIn.global.ts b/middleware/isLoggedIn.global.ts index 0d56dcf..a9eaeb3 100644 --- a/middleware/isLoggedIn.global.ts +++ b/middleware/isLoggedIn.global.ts @@ -1,6 +1,10 @@ export default defineNuxtRouteMiddleware(async (to, from) => { + if (to.fullPath == "/stundenplan") { + return navigateTo("/dash/stundenplan") + } if (import.meta.server) return true + const isLoggedIn = useState("isLoggedIn", (() => false) as () => boolean) if (!to.fullPath.includes("dash")) {