From 41c3a4401a9453502abc4f73007e10a04122071c Mon Sep 17 00:00:00 2001 From: argirok Date: Tue, 9 Jan 2024 10:08:09 +0200 Subject: [PATCH] set allow double redirect for user management service --- src/app/app.component.ts | 3 ++- src/app/user-policy/user-policy.component.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index aaa91a0..e549104 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -105,7 +105,8 @@ export class AppComponent extends ResearcherBaseComponent implements OnInit { super(); this.configurationService.initStaticPortal(this.irish.portal); this.userManagementService.fixRedirectURL = this.properties.afterLoginRedirectLink; - } + this.userManagementService.allowDoubleRedirectToFixAndCurrentPage = true; + } ngOnDestroy() { super.ngOnDestroy(); diff --git a/src/app/user-policy/user-policy.component.ts b/src/app/user-policy/user-policy.component.ts index bce3fd9..fa70d01 100644 --- a/src/app/user-policy/user-policy.component.ts +++ b/src/app/user-policy/user-policy.component.ts @@ -83,7 +83,7 @@ export class UserPolicyComponent extends BaseComponent implements OnInit { this.userManagementsService.setRedirectUrl(this.redirectUrl); this._router.navigate(['/reload']); }else{ - this._router.navigate(['/']); + this._router.navigate(['/reload']); } }