Skip to content

Commit

Permalink
Fix a thing
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown committed Jun 7, 2024
1 parent b7c0404 commit 5d2d046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/keystatic/src/app/shell/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function useIsCurrent() {
if (exact) {
return href === router.pathname ? 'page' : undefined;
}
return href === router.pathname || href.startsWith(`${router.pathname}/`)
return href === router.pathname || router.pathname.startsWith(`${href}/`)
? 'page'
: undefined;
},
Expand Down

0 comments on commit 5d2d046

Please sign in to comment.