From 494aa8c53bdc10dc900846ef82206e124afae74f Mon Sep 17 00:00:00 2001 From: Art Date: Fri, 8 Oct 2021 16:36:38 +0300 Subject: [PATCH] 31.7. Default Page after login is Users (#31) --- .../src/app/component/login/login.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/support-portal-frontend/src/app/component/login/login.component.ts b/support-portal-frontend/src/app/component/login/login.component.ts index 64d4df6..5609bd7 100644 --- a/support-portal-frontend/src/app/component/login/login.component.ts +++ b/support-portal-frontend/src/app/component/login/login.component.ts @@ -26,7 +26,7 @@ export class LoginComponent implements OnInit, OnDestroy { ngOnInit(): void { if (this.authenticationService.isUserLoggedIn()) { - this.router.navigateByUrl("/user/management"); + this.router.navigate(["/management", "users"]); this.notificationService.notify(NotificationType.INFO, "You are already logged in"); } } @@ -43,7 +43,7 @@ export class LoginComponent implements OnInit, OnDestroy { this.authenticationService.addUserToLocalStorage(response.body!); - this.router.navigateByUrl('/user/management'); + this.router.navigateByUrl('/management/users'); this.showLoading = false; }, (errorResponse: HttpErrorResponse) => {