We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b8492 commit 0b6ff09Copy full SHA for 0b6ff09
src/components/link.js
@@ -28,9 +28,10 @@ export default {
28
const href = base ? cleanPath(base + fullPath) : fullPath
29
const classes = {}
30
const activeClass = this.activeClass || router.options.linkActiveClass || 'router-link-active'
31
+ const compareTarget = to.path ? to : resolved
32
classes[activeClass] = this.exact
- ? isSameRoute(current, to)
33
- : isIncludedRoute(current, to)
+ ? isSameRoute(current, compareTarget)
34
+ : isIncludedRoute(current, compareTarget)
35
36
const data = {
37
class: classes,
0 commit comments