Skip to content

Link Component Sends Unnecessary Quest to Server When Directing to the Anchor in Same Page #79073

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

Open
Cierra-Runis opened this issue May 12, 2025 · 0 comments
Labels
Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation.

Comments

@Cierra-Runis
Copy link

Link to the code that reproduces this issue

https://codesandbox.io/p/devbox/bold-leakey-ldsc82?workspaceId=ws_Q9uzKhdFBESNeeBCA1zppY

To Reproduce

Notice: CodeSandbox seems doesn't support inspect network status, it's better to reproduce the issue in local.

  1. Launch the project
  2. Jump between the anchor and inspect the network request

Current vs. Expected behavior

QQ2025512-153752-HD.mp4

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 28525
  Available CPU cores: 16
Binaries:
  Node: 22.15.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 10.10.0
Relevant Packages:
  next: 15.3.2 // Latest available version is detected (15.3.2).
  eslint-config-next: 15.1.7
  react: 19.1.0
  react-dom: 19.1.0
  typescript: 5.8.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Linking and Navigating

Which stage(s) are affected? (Select all that apply)

Other (Deployed)

Additional context

No response

@github-actions github-actions bot added the Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation. label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linking and Navigating Related to Next.js linking (e.g., <Link>) and navigation.
Projects
None yet
Development

No branches or pull requests

1 participant