mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-11-26 05:26:06 +00:00
fix: review comments
This commit is contained in:
+3
-1
@@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user