We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 477b1ca commit bd00b5aCopy full SHA for bd00b5a
src/app/LoggedInOutlet.ts
@@ -23,8 +23,8 @@ export class LoggedInRouterOutlet extends RouterOutlet {
23
activate(instruction: ComponentInstruction) {
24
var url = this.parentRouter.lastNavigationAttempt;
25
if (!this.publicRoutes[url] && !localStorage.getItem('jwt')) {
26
- // todo: redirect to Login
27
- //instruction.component = Login;
+ // todo: redirect to Login, may be there a better way?
+ this.parentRouter.navigateByUrl('/login');
28
}
29
return super.activate(instruction);
30
0 commit comments