Vue 3 router - router-link-active not working

Viewed 1997

In vue 3 with router 4 the class router-link-active isn't working anymore for me. The class appears if u are on the same page, together with router-link-exact-active, but not on any subpages.

For example the link <router-link :to="{ name: 'test'}">test</router-link> get's the classes router-link-active and router-link-exact-active on /test but none of them on /test/2

{
    path: '/test',
    name: 'test',
    component: Test
},
{
    path: '/test/2',
    name: 'test-2',
    component: Test2
},

Real Example: https://codesandbox.io/s/vue-router-4-reproduction-forked-zcb7y

Thx, for any ideas or suggestions

1 Answers
Related