Skip to content

Commit

Permalink
add route /stundenplan to dash for legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
probablyjassin committed Nov 21, 2024
1 parent ade0c9f commit dfff421
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions middleware/isLoggedIn.global.ts
Original file line number Diff line number Diff line change
@@ -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")) {
Expand Down

0 comments on commit dfff421

Please sign in to comment.