Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: patched project select

=b6694b0356cd
diff --git a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
index 4e26a73932..72430fec66 100644
--- a/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
+++ b/frontend/src/layouts/ProjectLayout/components/ProjectSelect/ProjectSelect.tsx
@@ -171,9 +171,21 @@ export const ProjectSelect = () => {
to: getProjectHomePage(workspace.type, workspace.environments),
params: {
projectId: workspace.id
+ },
+ search: {
+ subOrganization: currentOrg?.subOrganization?.name
}
});
- window.location.assign(url.to.replaceAll("$projectId", workspace.id));
+ const urlInstance = new URL(
+ `${window.location.origin}/${url.to.replaceAll("$projectId", workspace.id)}`
+ );
+ if (currentOrg?.subOrganization) {
+ urlInstance.searchParams.set(
+ "subOrganization",
+ currentOrg.subOrganization.name
+ );
+ }
+ window.location.assign(urlInstance);
}}
icon={
currentWorkspace?.id === workspace.id && (