We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc2c83a commit 9c93d8fCopy full SHA for 9c93d8f
lib/default-theme/util.js
@@ -46,11 +46,7 @@ export function isActive (route, path) {
46
}
47
const routePath = normalize(route.path)
48
const pagePath = normalize(path)
49
- if (endingSlashRE.test(routePath) || endingSlashRE.test(pagePath)) {
50
- return routePath === pagePath
51
- } else {
52
- return routePath.indexOf(pagePath) === 0
53
- }
+ return routePath === pagePath
54
55
56
export function resolvePage (pages, rawPath, base) {
0 commit comments