From 505fea62952a22888b5a6f9900a9d80c836d4504 Mon Sep 17 00:00:00 2001 From: Shigma <33423008+Shigma@users.noreply.github.com> Date: Sun, 24 Feb 2019 15:56:12 +0800 Subject: [PATCH] fix($core): handle redirect based on lower case (#1333) --- packages/@vuepress/core/lib/app/redirect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/core/lib/app/redirect.js b/packages/@vuepress/core/lib/app/redirect.js index 4c99d5b6f9..3f59573961 100644 --- a/packages/@vuepress/core/lib/app/redirect.js +++ b/packages/@vuepress/core/lib/app/redirect.js @@ -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 }