I\'m using next.js for rebuilding an app for server side rendering. I have a button that handles a search request.
In the old app, the handler was this one:
If you want 'clean' urls, one way to go about it is to add onClick handler to your link and store required information in context/redux store. It easy to implement if you already have one.
{dispatch(....)}}>Link