Skip to content

Commit 6b0cd19

Browse files
authored
docs: fix incorrect active nav link (TanStack#741)
1 parent 0051b91 commit 6b0cd19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/src/components/LayoutDocs.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function SidebarRoutes({ isMobile, routes: currentRoutes, level = 1 }) {
176176

177177
const pagePath = removeFromLast(path, '.')
178178
const pathname = addTagToSlug(pagePath, tag)
179-
const selected = slug.startsWith(pagePath)
179+
const selected = slug === pagePath
180180
const route = {
181181
href: pagePath,
182182
path,

0 commit comments

Comments
 (0)