To clarify, I have this router link inside a navbar, which has a button on top of it that changes the route.
Here's code for context:
<router-link v-if="foo" :to="/">
...
<button @click="redirect"> GO </button>
...
The method for redirection:
redirect() { this.$router.push('/myroute').catch(() => {})
I tried using z index on both elements, but every time I click on the GO button it first goes to the '/myroute' and then goes back to '/'
Is there a way I can work around this?