When setting up routing with a multi-index search using the
Index> widget, you may encounter an issue in which the routing does not update. This can happen when the
<Index> widget does not have an
The solution is to add the
indexId parameter to the
<Index> widget. Providing an
indexId allows different
<Index widgets to target the same Algolia index. It’s especially useful for the routing feature, and it lets you find the refinements that match an
More information on this can be found in our multi-index search guide and you can see a working example in this CodeSandbox.
For more information on how to set up the routing for your app, please refer to our guide on how to Sync your URLs with React InstantSearch Hooks.