Open y-hsgw opened 23 hours ago
Experiencing the same issue from next@15.0.0
Redirecting in server action to pathname with same root param is triggering my issue. But no issue if redirecting to a different root param
e.g. adding a list item in /list/2/item/3
and redirecting to new list item at /list/2/item/4
triggers unexpected behaviour but /list/2/item/3
to /list/3/item/4
behaves as expected.
Link to the code that reproduces this issue
https://github.com/y-hsgw/reproduction-next-app
To Reproduce
next dev
Current vs. Expected behavior
As shown in the attached video, redirecting ( redirect function ) to the same path in Next.js 15 temporarily hides the content of page.tsx. This issue did not occur in Next.js 14. (You can confirm this by changing the version of Next.js in the attached repository to 14.2.18.)
https://github.com/user-attachments/assets/edf65b80-752d-4902-8471-73b1a4e62b77
I expect it to not temporarily disappear.
While I might be misunderstanding or missing something, I would appreciate it if you could look into this matter.
Provide environment information
Which area(s) are affected? (Select all that apply)
Navigation
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response