I have a website that has a search bar. When the user searches and hits enter, I need the page to reload with the new query params in the URL.
The problem is, if the user is already on that page, even though the query params are updating, the page does not reload. I have to physically hit refresh to see the new results.
I already know that I can pass in a key to router-view to fix this issue but I need an alternative as no where in my project is router-view even used.
What is another option to simply reload the page?
redirect({ lat, lng }) {
router.push({ name: 'test-route', query: { lat, lng }})
}