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);