vercel / next.js

The React Framework
https://nextjs.org
MIT License
125.97k stars 26.88k forks source link

<Link>s not loading correctly for page with getInitialProps. #9159

Closed laurencefass closed 5 years ago

laurencefass commented 5 years ago

Bug report

page performing component.getInitialProps fails to load from link.

Describe the bug

I have a menu consisting of links link to pages e.g.

<Link href="/link">
    <a><h2>page</h2></a>
</Link>

The link to the only page containing component.getInitialProps doesnt load. details below

To Reproduce

url: https://next.syntapse.co.uk/drupal

Click any link other than drupal at the top to load a different page and then return to URL above the address bar changes but the page doesnt load.

Expected behavior

the other pages dont try to fetch data and load fine using so im assuming at this stage the fetch is the cause of the issue

Screenshots

https://next.syntapse.co.uk/drupal

If applicable, add screenshots to help explain your problem.

System information

chrome and firefox

Additional context

Add any other context about the problem here.

ijjk commented 5 years ago

Hi, the above link appears to be giving a 502 error. Providing only a link to a production site doesn't help us reproduce without any code. Without any additional details the most likely cause for next/link to not work is https://github.com/zeit/next-plugins/issues/282

laurencefass commented 5 years ago

Thanks here is the entire code for the navbar you can see on the page. All part from the "drupal" page load fine. Im not using or importing any css here only inline