We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2289661 commit e112fa7Copy full SHA for e112fa7
middleware/auth.ts
@@ -8,5 +8,4 @@ export default defineNuxtRouteMiddleware((to) => {
8
if (to.fullPath === "/login" && user.value.id) return navigateTo("/");
9
10
if (!user.value.id) return navigateTo("/login");
11
- else return navigateTo(to.fullPath);
12
});
0 commit comments