mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
close dialog in the redirect (#5361)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user