const MyPage = () => { return
; }; MyPage.getInitialProps = (nextContext) => { const { pathname, query } = nextContext; // `pathname` should be `index`, i.e. the `destination` property in our route matcher definitions. console.log('pathname', pathname); // `query.routeName` should be `/some-rad-page`, i.e. the `:routeName` parameter matched in our route matcher definitions. console.log('query.routeName', query.routeName); }