Hi everyone!
After waiting for a very long time the arrival of react-instantsearch-hooks-router-nextjs
I’ve been trying to implement it on an existing next.js installation.
I’ve some faceting that gets mapped to a seo friendly url like:
xxx.test/shop/use/off-road
In my next.js installation I have a a /shop
folder with 2 routes: index.js
and [...slug].js
, they contain the same code, and components and of course the instant search configuration following the documentation for ssr rendering +
The problem I have is that when the faceting gets mapped to a /use/xxx/
url next.js re-renders the page to the new route moving away from the index route to the […slug] one.
In the documentation and in the examples I could only find use cases when the filtering gets mapped to some query strings, but never to seo friendly urls.
Anyone can shed some light?
Thanks a lot