Push a route (Moving from vueJS to nuxtJS)

The way I finally did was:

this.$router.push({path: this.localePath('search'), query: {q: this.q}});

Faced same problem with Nuxt v2.14.12. After some digging found router object under this.$nuxt.$options.router which is a Nuxt Helper. Currently this.$nuxt.$options.router.push() works fine.


Not a direct answer but while working with hashing I found this to work well. Will come back to edit this if there are any issues in the future.

this.$router.push(#${hash});