diff --git a/themes/src/main/resources/theme/keycloak-preview/account/resources/app/account-service/account.service.ts b/themes/src/main/resources/theme/keycloak-preview/account/resources/app/account-service/account.service.ts index e66447be49..4a36375a34 100644 --- a/themes/src/main/resources/theme/keycloak-preview/account/resources/app/account-service/account.service.ts +++ b/themes/src/main/resources/theme/keycloak-preview/account/resources/app/account-service/account.service.ts @@ -97,7 +97,7 @@ export class AccountServiceClient { private handleError(error: AxiosError): void { if (error != null && error.response != null && error.response.status === 401) { // session timed out? - this.kcSvc.login({ redirectUri: window.location.href }); + this.kcSvc.login(); } console.log(error); ContentAlert.danger(error.name + ': ' + error.message); @@ -114,7 +114,7 @@ export class AccountServiceClient { headers: {...config.headers, Authorization: 'Bearer ' + token} }); }).catch(() => { - this.kcSvc.login({ redirectUri: window.location.href }); + this.kcSvc.login(); }); }); }