Skip to content

Commit

Permalink
docs: fixed active routes comparing in documentation (vitest-dev#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmvshnvsk committed Jul 6, 2021
1 parent 4933480 commit 9b79535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/.vitepress/theme/utils.ts
Expand Up @@ -22,7 +22,7 @@ export function isActive(route: any, path?: string): boolean {
const routePath = normalize(route.path)
const pagePath = normalize(path)

return routePath === pagePath
return routePath.toLowerCase() === pagePath.toLowerCase()
}

export function normalize(path: string): string {
Expand Down

0 comments on commit 9b79535

Please sign in to comment.