import { withRouter } from 'next/router' const Link = withRouter(({router, children, href}) => { const handleClick = (e) => { e.preventDefault() router.push(href) } return (
Current path: {router.pathname} Current asPath: {router.asPath} {children}
) }) export default () => (
Go Back

This is the about page.

)