diff --git a/packages/console/src/hooks/use-tenant-pathname.ts b/packages/console/src/hooks/use-tenant-pathname.ts index 3c017c4bd..96bb7d373 100644 --- a/packages/console/src/hooks/use-tenant-pathname.ts +++ b/packages/console/src/hooks/use-tenant-pathname.ts @@ -67,7 +67,7 @@ function useTenantPathname(): TenantPathname { const match = useCallback( (pathname: string, exact = false) => { // Match relative pathnames directly - if (pathname.startsWith('.')) { + if (!pathname.startsWith('/')) { return ( matchPath(joinPath(location.pathname, pathname, exact ? '' : '*'), location.pathname) !== null