Merge pull request #4512 from FinnStutzenstein/fixOpenSlidesServiceOnLogin
Fixed errors on login
This commit is contained in:
commit
e03ec00567
@ -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