Home

Issue: 2358

change url query without changing page

[issue link]

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?

This question is available on Nuxt.js community (#c2056)