From d1e370ae12103ed658dfbe9272f966019c38c4b6 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Wed, 10 Feb 2021 13:18:18 +0100 Subject: [PATCH] fix: redirect after idp create (#1269) --- console/src/app/modules/idp-create/idp-create.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/console/src/app/modules/idp-create/idp-create.component.ts b/console/src/app/modules/idp-create/idp-create.component.ts index 223aee16ce..4cd6bf2302 100644 --- a/console/src/app/modules/idp-create/idp-create.component.ts +++ b/console/src/app/modules/idp-create/idp-create.component.ts @@ -110,9 +110,9 @@ export class IdpCreateComponent implements OnInit, OnDestroy { setTimeout(() => { this.loading = false; this.router.navigate([ - this.serviceType === PolicyComponentServiceType.MGMT ? 'org' : - this.serviceType === PolicyComponentServiceType.ADMIN ? 'iam' : '', - 'idp', idp.getId()]); + (this.serviceType === PolicyComponentServiceType.MGMT ? 'org' : + this.serviceType === PolicyComponentServiceType.ADMIN ? 'iam' : ''), + 'policy', 'login']); }, 2000); }).catch(error => { this.toast.showError(error);