From 9b795355bd0560ea6517a2d969cafeaf3e91299a Mon Sep 17 00:00:00 2001 From: Maxim Vishnevsky Date: Tue, 6 Jul 2021 18:02:56 +0400 Subject: [PATCH] docs: fixed active routes comparing in documentation (#607) --- packages/.vitepress/theme/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/.vitepress/theme/utils.ts b/packages/.vitepress/theme/utils.ts index aad8b5a76837..039996be9498 100644 --- a/packages/.vitepress/theme/utils.ts +++ b/packages/.vitepress/theme/utils.ts @@ -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 {