From 0e48535eba8e7eb6f3a80ddb1c59f5d6bfed42e3 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 14 Apr 2025 12:40:06 +0530 Subject: [PATCH] fix the locale for path thing --- src/shared/shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/shared.ts b/src/shared/shared.ts index 62f74889..124a69f5 100644 --- a/src/shared/shared.ts +++ b/src/shared/shared.ts @@ -83,7 +83,7 @@ export function getLocaleForPath( (key) => key !== 'root' && !isExternal(key) && - isActive(relativePath, `/${key}/`, true) + isActive(relativePath, `^/${key}/`, true) ) || 'root' ) }