If you want to change, for example, “query into “q” in your routing, you need to use the stateMapping
functions to:
- first, in
stateToRoute
, return an object containing “q” for the query, - then, in
routeToState
, replace that “q” again with “query”.
Applies to InstantSearch v3 and later