I'm creating a component that will append query param to current url based on user input. This is the method to change the url.
submitSearch () {
this.$router.push({query: {search: this.search ? this.search : undefined}})
},
Submitting "john doe" will change the url into http://mysite.test?search=john%20doe
How to make it use + instead? expected url: http://mysite.test?search=john+doe