Skip to content

Commit a557969

Browse files
authored
fix: sidebar active class (github#19630)
1 parent b1a379d commit a557969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/product/SidebarProduct.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const SidebarProduct = () => {
3939
const isStandaloneCategory = childPage.page.documentType === 'article'
4040

4141
const childTitle = childPage.renderedShortTitle || childPage.renderedFullTitle
42-
const isActive = routePath.includes(routePath)
42+
const isActive = routePath.includes(childPage.href)
4343
const isCurrent = routePath === childPage.href
4444
return (
4545
<li

0 commit comments

Comments
 (0)