diff --git a/lib/default-theme/util.js b/lib/default-theme/util.js index e5a859be25..5aafb431bb 100644 --- a/lib/default-theme/util.js +++ b/lib/default-theme/util.js @@ -46,11 +46,7 @@ export function isActive (route, path) { } const routePath = normalize(route.path) const pagePath = normalize(path) - if (endingSlashRE.test(routePath) || endingSlashRE.test(pagePath)) { - return routePath === pagePath - } else { - return routePath.indexOf(pagePath) === 0 - } + return routePath === pagePath } export function resolvePage (pages, rawPath, base) {