On my project, I'm using React + Next.js. For routes, I use the library next-routes. When you navigate the nested route "{category alias}/filter" the page reloads.
Add route - routes.add ({name: 'products', pattern: '/:noname/filter', page: 'products'})
Link to the route - <Link route="category_alias/filter">Products</ Link>
How to make it work without reloading?
I'm under the impression that you are still using the
Linkparameter inside thenext/linkIf that is so, then switch to using the
Linkobject found the file where you export the next-routesAssuming you have the
routes.jsfile at the root of the project:Then in a path like
pages/test.jsSee https://github.com/fridays/next-routes#on-the-client