Open karoun opened 1 year ago
This bug was fixed in v13.4.0
Excellent news, thank you @hmelii! Could you link to the fix in question?
I am facing the same issue on v14.0.3.
Same outcome, however, happens when requests on /_next/image?url=xxx
fail.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Routing (next/router, next/navigation, next/link)
Link to the code that reproduces this issue
https://github.com/reactjs/react.dev
To Reproduce
/_next/data/*
Describe the Bug
When a client-side transition (via
router.push()
ornext/link
) fails (due to the network request to/_next/data
failing), a generic Next error page is shown.This is problematic because the generic Next error page is unbranded and quite technical (
Application error: a client-side exception has occurred (see the browser console for more information).
) and therefore not a good user experience.Expected Behavior
I would expect Next to trigger a redirect to the originally-requested URL, rather than bubbling up a client-side error. That would have the effect of loading the non-generic error page (
_error
, if available).Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response