-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Closed
Labels
Linking and NavigatingRelated to Next.js linking (e.g., <Link>) and navigation.Related to Next.js linking (e.g., <Link>) and navigation.bugIssue was opened via the bug report template.Issue was opened via the bug report template.linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.locked
Description
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: linux
Arch: x64
Version: #41~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 31 16:00:14 UTC 2
Binaries:
Node: 18.12.1
npm: 8.19.2
Yarn: 1.22.19
pnpm: N/A
Relevant packages:
next: 13.4.2-canary.5
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
typescript: N/AWhich area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Routing (next/router, next/navigation, next/link)
Link to the code that reproduces this issue
To Reproduce
- Open the codesandbox in a new separate tab in order to be able to see the actual browser URL
- Click on a photo in order to intercept the route and open the modal with the photo details.
- Instead of clicking on the overlay click the "go back" link instead, located just below the photo
Describe the Bug
When you click the Link and the URL changes to / the interceptor route remains mounted and does not go away.
Expected Behavior
I would expect that since the route was changed (via Link no less) the interceptor page should disappear once the route that it was intercepting was changed.
Screencast.from.11-05-2023.04.23.04.webm
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
resthedev, Manduro, vetledv, zEh-, teovillanueva and 38 more
Metadata
Metadata
Assignees
Labels
Linking and NavigatingRelated to Next.js linking (e.g., <Link>) and navigation.Related to Next.js linking (e.g., <Link>) and navigation.bugIssue was opened via the bug report template.Issue was opened via the bug report template.linear: nextConfirmed issue that is tracked by the Next.js team.Confirmed issue that is tracked by the Next.js team.locked