Fix lockGuard redirect (#819)

This commit is contained in:
Thomas Rittson 2022-05-27 08:31:54 +10:00 committed by GitHub
parent a6fe5c7900
commit 77ca5762e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export class LockGuard implements CanActivate {
} }
const redirectUrl = const redirectUrl =
authStatus === AuthenticationStatus.LoggedOut ? [this.loginpage] : [this.homepage]; authStatus === AuthenticationStatus.LoggedOut ? this.loginpage : this.homepage;
return this.router.createUrlTree([redirectUrl]); return this.router.createUrlTree([redirectUrl]);
} }