-
Notifications
You must be signed in to change notification settings - Fork 27.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redirect
does not take basePath
into account
#54546
Comments
#54277 was supposed to fix this, can you verify |
Please verify that your issue can be recreated with Why was this issue marked with the
|
Sure. I'll verify it ASAP. |
Verified. Fixed in canary. |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: win32 Arch: x64 Version: Windows 11 Home China Binaries: Node: 20.5.0 npm: N/A Yarn: N/A pnpm: N/A Relevant Packages: next: 13.4.19 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: N/A Next.js Config: output: export
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
no link
To Reproduce
Describe the Bug
Since the basePath is
/abc
. We expect the code above to redirect/abc
to/abc/cn
.Expected Behavior
But it redirects to
/cn
without takingbasePath
into account.Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: