We are using vue instantsearch from Algolia.
When the user lands on page with some initial url parameters, algolia instantsearch loads an initial search, and changes the url to include the search parameters. However the initial url parameters do not persist when algolia rewrites the url, and we'd like them to stay. ie.e
- land on
/stuff?myparam=value - algolia sets up intial search results and changes url to
/stuff?refinementList=...and the url parammyparamis removed. Is there a way to keep it in the url?
By default Vue InstantSearch overrides the query parameters. You can control what is rendered in the URL through the
routing.routeroption of Vue InstantSearch. You can provide anhistoryrouter with a customcreateURLfunction. You will be able to keep the "current" parameters in the URL.