Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: review comments
Piyush Gupta7b00ab1d99e6
diff --git a/frontend/src/components/auth/TeamInviteStep.tsx b/frontend/src/components/auth/TeamInviteStep.tsxindex 57397d2086..c03229a33c 100644--- a/frontend/src/components/auth/TeamInviteStep.tsx+++ b/frontend/src/components/auth/TeamInviteStep.tsx@@ -20,9 +20,14 @@ export default function TeamInviteStep(): JSX.Element {const { mutateAsync } = useAddUsersToOrg();const { handlePopUpToggle, popUp, handlePopUpOpen } = usePopUp(["setUpEmail"] as const);+ const orgId = String(localStorage.getItem("orgData.id"));+// Redirect user to the getting started pageconst redirectToHome = async () => {- navigate({ to: "/" as const });+ navigate({+ to: orgId ? ("/organizations/$orgId/projects" as const) : "/",+ params: { orgId }+ });};const inviteUsers = async ({ emails: inviteEmails }: { emails: string }) => {@@ -32,7 +37,7 @@ export default function TeamInviteStep(): JSX.Element {.map(async (email) => {mutateAsync({inviteeEmails: [email],- organizationId: String(localStorage.getItem("orgData.id")),+ organizationId: orgId,organizationRoleSlug: "member"});});diff --git a/frontend/src/layouts/ProjectLayout/components/AssumePrivilegeModeBanner/AssumePrivilegeModeBanner.tsx b/frontend/src/layouts/ProjectLayout/components/AssumePrivilegeModeBanner/AssumePrivilegeModeBanner.tsxindex 6afdc2c98c..4c9feccc38 100644--- a/frontend/src/layouts/ProjectLayout/components/AssumePrivilegeModeBanner/AssumePrivilegeModeBanner.tsx+++ b/frontend/src/layouts/ProjectLayout/components/AssumePrivilegeModeBanner/AssumePrivilegeModeBanner.tsx@@ -38,7 +38,9 @@ export const AssumePrivilegeModeBanner = () => {{onSuccess: () => {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)+ );}});diff --git a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsxindex 976bda52ae..12df6684a6 100644--- a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx+++ b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx@@ -163,7 +163,7 @@ export const ProjectSelect = () => {}});const urlInstance = new URL(- `${window.location.origin}/${url.to.replaceAll("$projectId", workspace.id)}`+ `${window.location.origin}${url.to.replaceAll("$orgId", url.params.orgId).replaceAll("$projectId", url.params.projectId)}`);if (currentOrg?.subOrganization) {urlInstance.searchParams.set(diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsxindex e717a56227..aa025ec239 100644--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupMembersSection/GroupMembersTable.tsx@@ -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)+ );}});diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsxindex d346e8bfb9..dbbec5ab52 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx@@ -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)+ );}});diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsxindex 8064f070d9..cfaf9933c6 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx@@ -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)+ );}});