Skip to content
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

in version 12, #is appended multiple times for dynamic routes #44947

Open
1 task
tamilarasue1995 opened this issue Jan 17, 2023 · 1 comment
Open
1 task

in version 12, #is appended multiple times for dynamic routes #44947

tamilarasue1995 opened this issue Jan 17, 2023 · 1 comment
Labels
template: bug A user has filled out the bug report template. Issue needs triaging

Comments

@tamilarasue1995
Copy link

tamilarasue1995 commented Jan 17, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.6.0: Sun Nov 6 23:31:16 PST 2022; root:xnu-8020.240.14~1/RELEASE_X86_64
Binaries:
Node: 16.18.1
npm: 8.19.2
Yarn: N/A
pnpm: 6.9.1
Relevant packages:
next: 12.2.0
eslint-config-next: 13.0.2
react: 18.2.0
react-dom: 18.2.0

Which area(s) of Next.js are affected? (leave empty if unsure)

Routing (next/router, next/navigation, next/link)

Link to the code that reproduces this issue

https://github.com/tamilarasue1995/next-app.git

To Reproduce

clone the repo
run npm install
run npm run dev
goto http://localhost:3000/dynamic#hash?q=12

Describe the Bug

when entering http://localhost:3000/dynamic#hash?q=12, this url is automatically modified into http://localhost:3000/dynamic#hash#hash#hash#hash#hash#hash#hash#hash#hash?q=12

Expected Behavior

The url should not be modified...
Even though this issue is fixed in nextjs 13, is there a way to fix this in next v12 itself, like a patch fix?

Which browser are you using? (if relevant)

Version 108.0.5359.124

How are you deploying your application? (if relevant)

npm run dev(next dev)

@tamilarasue1995 tamilarasue1995 added the template: bug A user has filled out the bug report template. Issue needs triaging label Jan 17, 2023
@GabenGar
Copy link

Is there a specific reason you can't upgrade to 13?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template: bug A user has filled out the bug report template. Issue needs triaging
Projects
None yet
Development

No branches or pull requests

2 participants