diff --git a/app/src/app/auth/ForgotPassword.tsx b/app/src/app/auth/ForgotPassword.tsx index 24c692b..c200d4f 100644 --- a/app/src/app/auth/ForgotPassword.tsx +++ b/app/src/app/auth/ForgotPassword.tsx @@ -19,7 +19,7 @@ export default function ForgotPassword() { const { forgotPassword } = useAuth({ middleware: 'guest', - redirectIfAuthenticated: '/dashboard' + redirectIfAuthenticated: '/' }); const submitForm = async (event) => { diff --git a/app/src/app/auth/Login.tsx b/app/src/app/auth/Login.tsx index fd9c12c..29003d1 100644 --- a/app/src/app/auth/Login.tsx +++ b/app/src/app/auth/Login.tsx @@ -19,7 +19,7 @@ export default function Login() { const { login } = useAuth({ middleware: 'guest', - redirectIfAuthenticated: '/dashboard' + redirectIfAuthenticated: '/' }); const submitForm = async (event) => { diff --git a/app/src/app/auth/Register.tsx b/app/src/app/auth/Register.tsx index 84cc351..628473e 100644 --- a/app/src/app/auth/Register.tsx +++ b/app/src/app/auth/Register.tsx @@ -16,7 +16,7 @@ export default function Register() { const { register } = useAuth({ middleware: 'guest', - redirectIfAuthenticated: '/dashboard' + redirectIfAuthenticated: '/' }); const submitForm = async (event) => { diff --git a/app/src/app/auth/VerifyEmail.tsx b/app/src/app/auth/VerifyEmail.tsx index f32cb77..aa23754 100644 --- a/app/src/app/auth/VerifyEmail.tsx +++ b/app/src/app/auth/VerifyEmail.tsx @@ -12,7 +12,7 @@ export default function VerifyEmail() { const [status, setStatus] = useState(null); const { logout, resendEmailVerification } = useAuth({ middleware: 'auth', - redirectIfAuthenticated: '/dashboard' + redirectIfAuthenticated: '/' }); return ( diff --git a/backend/app/Providers/RouteServiceProvider.php b/backend/app/Providers/RouteServiceProvider.php index 025e874..973b544 100644 --- a/backend/app/Providers/RouteServiceProvider.php +++ b/backend/app/Providers/RouteServiceProvider.php @@ -17,7 +17,7 @@ class RouteServiceProvider extends ServiceProvider * * @var string */ - public const HOME = '/dashboard'; + public const HOME = '/'; /** * Define your route model bindings, pattern filters, and other route configuration.