I am working on appending attribute parameters to a URL using the following code snippet:
this.$router.push({ query: Object.assign({}, this.$route.query, { attributes: this.encodedAttributes() }) });
However, I have noticed that when I call this method for the second time, the parameters are added again instead of updating them. I need assistance in ensuring that the parameters update if they already exist rather than adding them multiple times.