I am writing a component to filter data in a grid. The component has multiple fields in which I store their data in the model. when a user fills in some input and submits the form I am doing this on submit.
methods: {
    async submit() {
      await this.$router.push(
        {
          name: this.$route.name,
          query: JSON.parse(JSON.stringify(this.model))
        }
      )
    }
  }
I expect this to push the form data in the URL query but it won't do anything and I get this error.
Avoided redundant navigation to current location
It looks like I can't pass a dynamic value to the query. If I log the model in the console and paste the exact data in the code for the query it works without any problem!! Is there a way to fix this problem?
 
    