Skip to content

Commit

Permalink
fix($core): handle redirect based on lower case (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma authored and ulivz committed Feb 24, 2019
1 parent b79768c commit 505fea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/core/lib/app/redirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export function handleRedirectForCleanUrls (router) {
}

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

0 comments on commit 505fea6

Please sign in to comment.