Files
13bac7c739 fix popstate detection for safari when basepath is present (#32687)
* fix popstate detection for safari when basepath is present

* Add test case

Co-authored-by: JJ Kasper <[email protected]>
2021-12-21 14:11:10 -06:00

13 lines
243 B
JavaScript

const Page = ({ from }) => (
<div>
<p>{from}</p>
<a href="https://google.com">External link</a>
</div>
)
Page.getInitialProps = () => {
return { from: typeof window === 'undefined' ? 'server' : 'client' }
}
export default Page