We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://github.com/kachkaev/next.js-server-action-redirect-url-hash-mwe
npm install; npm run dev
/example?hello=world#hash
Currently, new URL is http://localhost:3000/example?hello=world but it should be http://localhost:3000/example?hello=world#hash.
http://localhost:3000/example?hello=world
http://localhost:3000/example?hello=world#hash
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 22.13.1 npm: 10.9.2 Yarn: N/A pnpm: 10.1.0 Relevant Packages: next: 15.3.0-canary.6 // Latest available version is detected (15.3.0-canary.6). eslint-config-next: N/A react: 19.0.0 react-dom: 19.0.0 typescript: 5.8.2 Next.js Config: output: N/A
Server Actions
next dev (local), next start (local)
Received x-action-redirect header contains /example?hello=world#hash;push, so the #hash is transmitted to the client.
x-action-redirect
/example?hello=world#hash;push
#hash
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Link to the code that reproduces this issue
https://github.com/kachkaev/next.js-server-action-redirect-url-hash-mwe
To Reproduce
npm install; npm run dev
/example?hello=world#hash
Current vs. Expected behavior
Currently, new URL is
http://localhost:3000/example?hello=world
but it should be
http://localhost:3000/example?hello=world#hash
.Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:16 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6000 Available memory (MB): 32768 Available CPU cores: 10 Binaries: Node: 22.13.1 npm: 10.9.2 Yarn: N/A pnpm: 10.1.0 Relevant Packages: next: 15.3.0-canary.6 // Latest available version is detected (15.3.0-canary.6). eslint-config-next: N/A react: 19.0.0 react-dom: 19.0.0 typescript: 5.8.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Server Actions
Which stage(s) are affected? (Select all that apply)
next dev (local), next start (local)
Additional context
Received
x-action-redirect
header contains/example?hello=world#hash;push
, so the#hash
is transmitted to the client.The text was updated successfully, but these errors were encountered: