<Link> with href="#..." still navigates to home #49722
Labels
bug
Issue was opened via the bug report template.
Navigation
Related to Next.js linking (e.g., <Link>) and navigation.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 Binaries: Node: 16.14.0 npm: 8.3.1 Yarn: 1.22.17 pnpm: 7.12.2 Relevant packages: next: 13.4.3-canary.0 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 4.9.5
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
#43089
To Reproduce
/
href="#content"
)As a sanity check, disable Javascript and click the same link.
Describe the Bug
I think I'm still seeing #43089
Clicking on an anchor link on a page other than home e.g.,
<Link href="#content" />
takes me to/#content
Expected Behavior
If I am on page
/page
and click on<Link href="#content" />
, I expect to navigate to/page#content
Disabling Javascript produces expected behavior
Which browser are you using? (if relevant)
Arc, Safari, and Chrome @ latest; Firefox Dev
How are you deploying your application? (if relevant)
next start
The text was updated successfully, but these errors were encountered: