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:
Denys Vuika
2018-10-05 09:52:07 +01:00
committed by GitHub
parent b959f8795d
commit ac99f5397d
4 changed files with 22 additions and 24 deletions

View File

@@ -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' }
});
}
}
});