diff --git a/01-Login/src/app/auth/auth.service.ts b/01-Login/src/app/auth/auth.service.ts index 600671ec..85e27044 100644 --- a/01-Login/src/app/auth/auth.service.ts +++ b/01-Login/src/app/auth/auth.service.ts @@ -108,7 +108,7 @@ export class AuthService { // Response will be an array of user and login status authComplete$.subscribe(([user, loggedIn]) => { // Redirect to target route after callback processing - this.router.navigate([targetRoute]); + this.router.navigateByUrl(targetRoute); }); } }