We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45063ae commit 596014fCopy full SHA for 596014f
lib/default-theme/NavLink.vue
@@ -3,7 +3,7 @@
3
class="nav-link"
4
:to="link"
5
v-if="!isExternal(link)"
6
- :exact="link === '/'"
+ :exact="exact"
7
>{{ item.text }}</router-link>
8
<a
9
v-else
@@ -29,6 +29,12 @@ export default {
29
computed: {
30
link () {
31
return ensureExt(this.item.link)
32
+ },
33
+ exact () {
34
+ if (this.$site.locales) {
35
+ return Object.keys(this.$site.locales).some(rootLink => rootLink === this.link)
36
+ }
37
+ return this.link === '/'
38
}
39
},
40
methods: {
0 commit comments