Skip to content

Commit 95e4fd6

Browse files
authored
Merge pull request #72 from dev-five-git/fix-landing
Add prefix
2 parents 60302df + f6805b7 commit 95e4fd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/landing/src/app/(detail)/docs/OpenMenuItem.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ export function OpenMenuItem({
5656
<Box borderRight="1px solid var(--border, #E0E0E0)" w="10px" />
5757
<VStack flex="1" gap="4px">
5858
{subMenu.map(({ children, to }, idx) => {
59-
const selected = to ? path.startsWith(to) : false
59+
const selected = to
60+
? path.startsWith(to) || path.startsWith(URL_PREFIX + to)
61+
: false
6062
const inner = (
6163
<Flex
6264
_hover={{

0 commit comments

Comments
 (0)