We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a33e216 commit d615a6eCopy full SHA for d615a6e
src/components/DocsNav.tsx
@@ -128,7 +128,10 @@ const DocsNav = ({ contentNotTranslated }: DocsNavProps) => {
128
// Find index that matches current page
129
let currentIndex = 0
130
for (let i = 0; i < docsArray.length; i++) {
131
- if (asPath.indexOf(docsArray[i].to) > -1) {
+ if (
132
+ asPath.indexOf(docsArray[i].to) > -1 &&
133
+ asPath.length === docsArray[i].to.length
134
+ ) {
135
currentIndex = i
136
}
137
0 commit comments