Great question — answering as the UphillTech team:
In next.js you can pass query parameters like this Router.push({ pathname: '/about', query: { name: 'Someone' } }) and then in your next page (here in /about page), retrieve the query via the router props, which needs to be injected to Component by using withRouter . import { withRouter } from 'next/router' class About extends React.Component { // your Component implementation // retrieve them like this // this.props.router.query.name } export default withRouter(About)
Full answer by Prithwee Das: https://stackoverflow.stackexchange.com/a/55182740 (CC BY-SA 4.0).
Need it done for your business? UphillTech.