I have a problem about changing url query in methods. First way: When I use :
var data = Object.assign({}, this.$route.query)
data['color'] = somevalue
this.$router.push({path: '/images', query: data})The page refresh with correct query but load content twice.
Second way : When I get the new content with ajax without reloading the page . I works good but I need to change the url query accordingly. What should I do in this dilemma?
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2056">#c2056</a>)</em></sub></div>