Skip to content

Commit 505fea6

Browse files
shigmaulivz
authored andcommitted
fix($core): handle redirect based on lower case (#1333)
1 parent b79768c commit 505fea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vuepress/core/lib/app/redirect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ export function handleRedirectForCleanUrls (router) {
5050
}
5151

5252
function isRouteExists (router, path) {
53-
return router.options.routes.filter(route => route.path === path).length > 0
53+
return router.options.routes.filter(route => route.path.toLowerCase() === path.toLowerCase()).length > 0
5454
}

0 commit comments

Comments
 (0)