From 21ea47ed4f2dc21187f5c9ef45e979993de69ba8 Mon Sep 17 00:00:00 2001 From: Adham Saad Date: Sun, 30 Jun 2024 13:01:34 +0400 Subject: [PATCH 1/2] Redirect to /dashboard when successfully logged in --- nuxt.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index 173a234..eb409b3 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -30,7 +30,7 @@ export default defineNuxtConfig({ sanctum: { baseUrl: 'http://localhost:80', redirect: { - onGuestOnly: '/dashboard', + onLogin: '/dashboard', }, }, From fc64ff7e2a671f162b27b2cc3898d997421a9436 Mon Sep 17 00:00:00 2001 From: Adham Saad Date: Sun, 30 Jun 2024 20:42:55 +0400 Subject: [PATCH 2/2] add both onGuestOnly and onLogin --- nuxt.config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index eb409b3..7c05826 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -30,6 +30,7 @@ export default defineNuxtConfig({ sanctum: { baseUrl: 'http://localhost:80', redirect: { + onGuestOnly: '/dashboard', onLogin: '/dashboard', }, },