We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24c6fa7 commit 9bfb7dfCopy full SHA for 9bfb7df
app/_guards/auth.guard.ts
@@ -13,7 +13,7 @@ export class AuthGuard implements CanActivate {
13
}
14
15
// not logged in so redirect to login page with the return url
16
- this.router.navigate(['/login'], { queryParams: { returnUrl: state.url }});
+ this.router.navigate(['login'], { queryParams: { returnUrl: state.url }});
17
return false;
18
19
app/register/register.component.ts
@@ -23,7 +23,7 @@ export class RegisterComponent {
23
.subscribe(
24
data => {
25
this.alertService.success('Registration successful', true);
26
- this.router.navigate(['/login']);
+ this.router.navigate(['login']);
27
},
28
error => {
29
this.alertService.error(error);
0 commit comments