Fixed errors on login
This commit is contained in:
parent
ccc81df434
commit
cd7b700aea
@ -81,7 +81,7 @@ export class OpenSlidesService {
|
||||
* Redirects the user to /login, if he isn't on a subpage.
|
||||
*/
|
||||
private redirectToLoginIfNotSubpage(): void {
|
||||
if (!this.redirectUrl.includes('/login/')) {
|
||||
if (!this.redirectUrl || !this.redirectUrl.includes('/login/')) {
|
||||
// Goto login, if the user isn't on a subpage like
|
||||
// legal notice or reset passwort view.
|
||||
this.router.navigate(['/login']);
|
||||
|
Loading…
Reference in New Issue
Block a user