はじめに nextjsのroutingのREADMEに書いてあることをベースに遷移先のgetInitialPropsで取得できる内容をまとめてます 遷移後のページでは以下のコードでpath情報周りを取得してます import React from 'react'; export default class extends React.Component { static async getInitialProps({ pathname, query, asPath }) { return { pathname, query, asPath }; } render() { return ( <ul> <li>pathname: {this.props.pathname}</li> <li>query: {JSON.stringify(this.props.query)}</li> <li>a
