fix: review comments

This commit is contained in:
Piyush Gupta
2025-11-21 19:14:04 +05:30
parent bba2aea0f5
commit 7b00ab1d99
6 changed files with 20 additions and 7 deletions
@@ -155,7 +155,9 @@ export const GroupMembersTable = ({ groupMembership }: Props) => {
});
const url = `${getProjectHomePage(currentProject.type, currentProject.environments)}${isSubOrganization ? `?subOrganization=${currentOrg.slug}` : ""}`;
window.location.href = url.replace("$projectId", currentProject.id);
window.location.assign(
url.replace("$orgId", currentOrg.id).replace("$projectId", currentProject.id)
);
}
}
);
@@ -95,7 +95,9 @@ const Page = () => {
text: "Identity privilege assumption has started"
});
const url = `${getProjectHomePage(currentProject.type, currentProject.environments)}${isSubOrganization && isNonScopedIdentity ? `?subOrganization=${currentOrg.slug}` : ""}`;
window.location.href = url.replace("$projectId", currentProject.id);
window.location.assign(
url.replace("$orgId", currentOrg.id).replace("$projectId", currentProject.id)
);
}
}
);
@@ -74,7 +74,9 @@ export const Page = () => {
});
const url = `${getProjectHomePage(currentProject.type, currentProject.environments)}${isSubOrganization ? `?subOrganization=${currentOrg.slug}` : ""}`;
window.location.href = url.replace("$projectId", currentProject.id);
window.location.assign(
url.replace("$orgId", currentOrg.id).replace("$projectId", currentProject.id)
);
}
}
);