Open lmatteis opened 1 year ago
@lmatteis Unfortunately, this is not a minimal enough example for us to take a look at.
Can you confirm if you are still seeing this on the latest canary, and if yes provide us with a minimal so we can take a look?
@samcx taking your nextgram example and following the instructions from https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#closing-the-modal (*) - it does not work.
see https://github.com/noxan/nextjs-nextgram for an example (minimal changeset)
(*) the second section, where it states: "When using the Link component to navigate away from a page that shouldn't render the @auth slot anymore, we use a catch-all route that returns null."
also #61206 seems like the same issue to me, and https://github.com/vercel/next.js/discussions/50284#discussioncomment-7482282 is a whole discussion around this issue.
Probably related: https://github.com/vercel/next.js/issues/71086
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App Router
Link to the code that reproduces this issue or a replay of the bug
https://github.com/lmatteis/nextgram/tree/e3c817dbd80521bde67e066c6a3f99a862b2f081
To Reproduce
/
Article Foo
which soft navigates to/article/foo
Describe the Bug
Given this folder structure
Note how
article/
is defined both on the root and inside the @langSlot:/article/foo
rendersapp/@langSlot/page.js
app/@langSlot/article/[...catchAll]/page.js
article/*
folder defined outside @langSlot,app/@langSlot/article/[...catchAll]/page.js
is rendered correctly.Expected Behavior
Soft navigating to
/article/foo
should renderapp/@langSlot/article/[...catchAll]/page.js
even witharticle/*
defined outside the @langSlotWhich browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response