From dfff4212dc2722729d6f4b76285e5827eb5a29af Mon Sep 17 00:00:00 2001 From: s5002669 Date: Thu, 21 Nov 2024 07:59:09 +0100 Subject: [PATCH] add route /stundenplan to dash for legacy --- middleware/isLoggedIn.global.ts | 4 ++++ 1 file changed, 4 insertions(+) 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")) {