From d15ebb0346680d55e5963d844e1c69b34d2bce0a Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Tue, 23 Dec 2025 20:05:06 +0400 Subject: [PATCH] fix: remove uxcp bypass --- src/components/ToolHeader/ToolHeader.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/components/ToolHeader/ToolHeader.tsx b/src/components/ToolHeader/ToolHeader.tsx index 92e5d35..60f0214 100644 --- a/src/components/ToolHeader/ToolHeader.tsx +++ b/src/components/ToolHeader/ToolHeader.tsx @@ -146,13 +146,10 @@ const ToolHeader: FC = ({ const getActiveFromPath = (pathname: string) => { const path = normalizePath(pathname); - const pathWithBypass = /^\/uxcp$/i.test(path) ? '/uxcp/' : path; - - if (pathWithBypass.includes('/uxcore')) return 'uxcore'; - if (pathWithBypass.includes('/uxcg')) return 'uxcg'; - if (pathWithBypass.includes('/uxcp')) return 'uxcp'; - if (pathWithBypass.includes('/uxcat') || pathWithBypass.includes('/user')) - return 'uxcat'; + if (path.includes('/uxcore')) return 'uxcore'; + if (path.includes('/uxcg')) return 'uxcg'; + if (path.includes('/uxcp')) return 'uxcp'; + if (path.includes('/uxcat') || path.includes('/user')) return 'uxcat'; return null; };