![javascript - Why do my vue-router links sporadically lead to the wrong page (or don't work at all)? - Stack Overflow javascript - Why do my vue-router links sporadically lead to the wrong page (or don't work at all)? - Stack Overflow](https://i.stack.imgur.com/nIdSo.png)
javascript - Why do my vue-router links sporadically lead to the wrong page (or don't work at all)? - Stack Overflow
div @click="onClick"><router-link :to="{ query: { q: val}}">{{val}}</router-link></div> to <router-link :to="{ query: { q: val}}" onClick>{{val}}</router-link> · Issue #896 · vuejs/vue-router · GitHub
![How can I edit this button to have when click it goes to the contact that is at the bottom of the page? : r/vuejs How can I edit this button to have when click it goes to the contact that is at the bottom of the page? : r/vuejs](https://preview.redd.it/pbctib67m2771.png?width=297&format=png&auto=webp&s=a2749ebdc6c319797cfc1d9c4e07f3b657d81019)