File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export default function LoginPage() {
4444 if ( response . ok ) {
4545 setPassword ( "" ) ; // Clear password from memory
4646 // Force a full page reload to reset AuthGuard state
47- window . location . href = "/dashboard/dashboard" ;
47+ window . location . href = "/dashboard/dashboard" ;
4848 } else {
4949 const data = await response . json ( ) ;
5050 setError ( data . error || "Authentication failed. Please try again." ) ;
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ export default function LogoutButton() {
1717
1818 if ( response . ok ) {
1919 // Force reload to clear all state and redirect to login
20- // Next.js basePath handles the redirect automatically
21- window . location . href = "/dashboard/login" ;
20+ // Next.js basePath handles the redirect automatically
21+ window . location . href = "/dashboard/login" ;
2222 }
2323 } catch ( error ) {
2424 console . error ( "Logout failed:" , error ) ;
You can’t perform that action at this time.
0 commit comments