close dialog in the redirect (#5361)

This commit is contained in:
Eugenio Romano
2020-01-08 14:33:06 +01:00
committed by GitHub
parent ad9aaf2b40
commit 2d7a566cc5

View File

@@ -78,6 +78,8 @@ export abstract class AuthGuardBase implements CanActivate, CanActivateChild {
const pathToLogin = this.getLoginRoute(); const pathToLogin = this.getLoginRoute();
const urlToRedirect = `/${pathToLogin}?redirectUrl=${url}`; const urlToRedirect = `/${pathToLogin}?redirectUrl=${url}`;
this.dialog.closeAll();
this.router.navigateByUrl(urlToRedirect); this.router.navigateByUrl(urlToRedirect);
} }
} }