From 3b1a97c08a1dc4e6f94ca0a480fd26c5770a1f75 Mon Sep 17 00:00:00 2001
From: Phan Huy Tran
Date: Wed, 26 Feb 2025 10:03:34 +0100
Subject: [PATCH] fix: Redirect to homepage after login
---
.../src/app/feature/login-success/login-success.component.ts | 2 +-
frontend/src/app/shared/components/navbar/navbar.component.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/frontend/src/app/feature/login-success/login-success.component.ts b/frontend/src/app/feature/login-success/login-success.component.ts
index bf81ac6..067afe6 100644
--- a/frontend/src/app/feature/login-success/login-success.component.ts
+++ b/frontend/src/app/feature/login-success/login-success.component.ts
@@ -21,6 +21,6 @@ export default class LoginSuccessComponent implements OnInit {
const user = await this.userService.getOrCreateUser(userProfile);
sessionStorage.setItem('user', JSON.stringify(user));
- this.router.navigate(['']);
+ this.router.navigate(['home']);
}
}
diff --git a/frontend/src/app/shared/components/navbar/navbar.component.html b/frontend/src/app/shared/components/navbar/navbar.component.html
index fa492ae..b3e3df3 100644
--- a/frontend/src/app/shared/components/navbar/navbar.component.html
+++ b/frontend/src/app/shared/components/navbar/navbar.component.html
@@ -6,7 +6,7 @@
Trustworthy Casino