mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
close dialog in the redirect (#5361)
This commit is contained in:
parent
ad9aaf2b40
commit
2d7a566cc5
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user