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 parammyparam
is 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.router
option of Vue InstantSearch. You can provide anhistory
router with a customcreateURL
function. You will be able to keep the "current" parameters in the URL.