Server Action Redirect Fails on Absolute URLs from the Same Host #74732
Unanswered
giulianovarriale
asked this question in
Help
Replies: 1 comment 1 reply
-
|
I guess, a route handler would fix this? You could just send a 301/302/307/307, etc, to the client, but this would have to be done the old way, If you set the basePath though, the sub-domain where your Next.js app lives, then links, and other stuff should work fine, like, relative to that basePath, what problem do you see, that'd need rewrites? In all likely hood I am missing some details here. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
We have multiple apps running under the same host and need to redirect users to different applications on specific actions. However, Next.js assumes all redirects within the same host belong to the same application, leading it to resolve and stream the route itself. This behavior results in a "Not Found" page when the target route belongs to a different application.
I found a related issue: #64413 and its corresponding fix: #64604. However, I don’t understand how this fix could help without the need to set a base path and configure some rewrites which is not optimal for my use case.
Questions:
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions