You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Link to the code that reproduces this issue
https://github.com/flippidippi/nextjs-issue-empty-query-param-proxy
To Reproduce
npm run dev
rewrites
in next.config.mjsTypeError: Invalid URL
shared/lib/router/utils/prepare-destination.js
escapeSegment
function incorrectly escapes the colon inhttp:
likehttp__ESC_COLON_//localhost__ESC_COLON_3000
Current vs. Expected behavior
I expect the URLs that currently break, to not 500 and successfully proxy with an empty query param name
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Mar 29 23:14:13 UTC 2024 Available memory (MB): 15999 Available CPU cores: 4 Binaries: Node: 20.11.1 npm: 10.2.4 Yarn: N/A pnpm: N/A Relevant Packages: next: 15.0.0-canary.76 // Latest available version is detected (15.0.0-canary.76). eslint-config-next: N/A react: 19.0.0-rc.0 react-dom: 19.0.0-rc.0 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local), Other (Deployed)
Additional context
No response
The text was updated successfully, but these errors were encountered: