Skip to content

Commit 9662169

Browse files
bodnaraxflord
authored andcommitted
fix: Login page redirect to correct "home" page
Previously if user was logged in and tried to access login page he would be redirected to "/home" which does not exist on all applications. Now he is redirected to "" (just base url). Each application than correctly navigates to it's "home" page.
1 parent 9961b51 commit 9662169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/perun/login/src/lib/login-screen/login-screen.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class LoginScreenComponent implements OnInit {
1212

1313
ngOnInit(): void {
1414
if (this.auth.isLoggedIn()) {
15-
void this.router.navigate(['/home'], { queryParamsHandling: 'merge' });
15+
void this.router.navigate([''], { queryParamsHandling: 'merge' });
1616
}
1717
}
1818
startAuth(): void {

0 commit comments

Comments
 (0)