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: prevent toggling org/settings side bar from duplicating router stack
Scott Wilson9a3898a073b8
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsxindex ef27209ee5..b85dfc2709 100644--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/OrgNav.tsx@@ -27,6 +27,10 @@ export const OrgNav = () => {const handleOpenSettings = () => {setShowSettings(true);+ // Already on a settings-area URL (e.g. after collapsing via "< Settings"):+ // re-navigating would push a duplicate same-URL history entry, so just+ // re-expand the sub-nav.+ if (isOnSettingsArea) return;navigate({to: "/organizations/$orgId/settings",params: { orgId: currentOrg.id },