2👍
✅
So apparently, it doesn’t work if you nest the router link under a button element.
So i changed my component to look like this:
<template>
<router-link v-if="to" :to="to" :class="classes" v-on="$listeners" v-bind="$attrs">
<AqIcon :icon="icon" v-if="icon" />
<slot></slot>
</router-link>
<button v-else :class="classes" v-on="$listeners" v-bind="$attrs">
<AqIcon :icon="icon" v-if="icon" />
<slot></slot>
</button>
</template>
And now it works.
Source:stackexchange.com