Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link component broken on error and not-found pages #48073

Closed
1 task done
cipriancaba opened this issue Apr 7, 2023 · 7 comments
Closed
1 task done

Link component broken on error and not-found pages #48073

cipriancaba opened this issue Apr 7, 2023 · 7 comments
Labels
area: app App directory (appDir: true) bug Issue was opened via the bug report template.

Comments

@cipriancaba
Copy link
Contributor

cipriancaba commented Apr 7, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000
    Binaries:
      Node: 16.17.0
      npm: 8.15.0
      Yarn: 1.22.19
      pnpm: 7.13.1
    Relevant packages:
      next: 13.3.0
      eslint-config-next: 13.3.0
      react: 18.2.0
      react-dom: 18.2.0

Which area(s) of Next.js are affected? (leave empty if unsure)

App directory (appDir: true)

Link to the code that reproduces this issue

https://stackblitz.com/edit/vercel-next-js-fzljky?file=app%2Fnot-found.tsx

To Reproduce

Go to any not-found page. Happens also on regular error pages
Click the link to go to homepage

Describe the Bug

Navigation doesn't work

Expected Behavior

I go to the homepage

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

@cipriancaba cipriancaba added the bug Issue was opened via the bug report template. label Apr 7, 2023
@github-actions github-actions bot added the area: app App directory (appDir: true) label Apr 7, 2023
@jinojacob15
Copy link

Same issue for me as well , Link component in global not-found.js is not working . Tried with router.push() still didnt work

@grzegorzpokorski
Copy link

I also want to confirm that something is broken with links on not-found.tsx page - when I click link on not-found.tsx page eg. <Link href="/contact">contact</Link>, in the search bar url changes to {mydomain}/contact but the content of the page stays the same as the one that was rendered on the not-found.tsx page.

In addition I also want to point that when not-found.tsx page is rendered on development mode it constantly rerenders on every ~2 seconds - I am not sure it is expected behaviour.

@TheEdoRan
Copy link

Related to #47862

@digitaltopo
Copy link

digitaltopo commented Apr 14, 2023

Seeing exactly the same thing as described here: #48073 (comment)

Links in other parts of the layout (header etc) also only change the url but nothing re-renders and we're stuck on the not-found page.

Running "next": "13.3.0"

@timneutkens
Copy link
Member

Duplicate of #47862

@timneutkens timneutkens marked this as a duplicate of #47862 May 9, 2023
@shubh140601
Copy link

Duplicate of #47862
i m gettting re-renders on not-found.tsx page

@github-actions
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: app App directory (appDir: true) bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

7 participants