We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a3c681 commit 8552cd7Copy full SHA for 8552cd7
1 file changed
src/app/login/view/login-view/login-view.component.ts
@@ -11,12 +11,12 @@ import { LoginUser } from '@app/login/model/login-user';
11
})
12
export class LoginViewComponent implements OnInit {
13
14
- private returnUrl: string = '';
15
-
16
public loading = false;
17
18
public error = '';
19
+ private returnUrl: string = '';
+
20
constructor(
21
private route: ActivatedRoute,
22
private router: Router,
@@ -28,6 +28,7 @@ export class LoginViewComponent implements OnInit {
28
if (this.authenticationService.getUser().logged) {
29
this.router.navigate(['/']);
30
}
31
32
// get return url from route parameters or default to '/'
33
this.returnUrl = this.route.snapshot.queryParams['returnUrl'] || '/';
34
0 commit comments