Skip to content

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

improvement: make settings tab matching more flexible

Scott Wilsonda86042317cf
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx
index 2a25cf9ad8..dae67d15d2 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/ProjectNav.tsx
@@ -57,7 +57,7 @@ export const ProjectNav = () => {
pathname.includes("/access-management") ||
Boolean(pathname.match(/\/groups\/|\/identities\/|\/members\/|\/roles\//));
const isOnIntegrations = pathname.includes("/integrations");
- const isOnProjectSettings = pathname.endsWith("/settings") || pathname.includes("/settings?");
+ const isOnProjectSettings = /\/settings(\/|\?|$)/.test(pathname);
const isOnApproval = pathname.includes("/approval");
const isOnMcpOverview = currentProject.type === ProjectType.AI && pathname.includes("/overview");
const isCertManager = currentProject.type === ProjectType.CertificateManager;