Skip to content

Commit 0e48535

Browse files
committed
fix the locale for path thing
1 parent 5fdd374 commit 0e48535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export function getLocaleForPath(
8383
(key) =>
8484
key !== 'root' &&
8585
!isExternal(key) &&
86-
isActive(relativePath, `/${key}/`, true)
86+
isActive(relativePath, `^/${key}/`, true)
8787
) || 'root'
8888
)
8989
}

0 commit comments

Comments
 (0)