mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
fix redirection for multiple 401 in a row (#690)
* fix redirection for multiple 401 in a row * update to ADF 2.6.0 * update e2e test
This commit is contained in:
@@ -80,13 +80,10 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
this.alfrescoApiService.getInstance().on('error', error => {
|
||||
if (error.status === 401) {
|
||||
if (!this.authenticationService.isLoggedIn()) {
|
||||
this.authenticationService.setRedirect({
|
||||
provider: 'ECM',
|
||||
url: this.router.url
|
||||
});
|
||||
|
||||
this.store.dispatch(new CloseModalDialogsAction());
|
||||
this.router.navigate(['/login']);
|
||||
this.router.navigate(['/login'], {
|
||||
queryParams: { returnUrl: 'personal-files' }
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user