diff --git a/src/main/webapp/app/blocks/interceptor/auth-expired.interceptor.ts b/src/main/webapp/app/blocks/interceptor/auth-expired.interceptor.ts index 9d5056628..ac88c8bda 100644 --- a/src/main/webapp/app/blocks/interceptor/auth-expired.interceptor.ts +++ b/src/main/webapp/app/blocks/interceptor/auth-expired.interceptor.ts @@ -22,10 +22,8 @@ export class AuthExpiredInterceptor implements HttpInterceptor { tap({ error: (err: HttpErrorResponse) => { if (err.status === 401 && err.url && !err.url.includes('api/account')) { + // customization to not have infinite loop: remove logout and login open this.stateStorageService.storeUrl(this.router.routerState.snapshot.url); - this.loginService.logout(); - this.router.navigate(['']); - this.loginModalService.open(); } }, })