Closed steven-tey closed 11 months ago
Seems to be fixed on latest 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
Which area(s) of Next.js are affected? (leave empty if unsure)
Middleware / Edge (API routes, runtime)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/uncurated-tests/middleware-redirect-bug
To Reproduce
Describe the Bug
The destination URL is a Vue Playground link:
There is a double slash around the middle (
uvf//EI5
).In the production URL, the double slash is turned into a single slash, which breaks the URL and renders it completely useless.
Expected Behavior
You should be redirected to the same URL in production and in localhost:
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response