Skip to content

[NEXT-378] Next 13: Navigation with Link does not scroll up the page #42492

@alexvcasillas

Description

@alexvcasillas

Verify canary release

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

Provide environment information

Operating System:
Platform: linux
Arch: x64
Version: #1 SMP Mon Sep 19 19:14:52 UTC 2022
Binaries:
Node: 16.15.0
npm: 8.5.5
Yarn: 3.2.4
pnpm: N/A
Relevant packages:
next: 13.0.2
eslint-config-next: 13.0.0
react: 18.2.0
react-dom: 18.2.0

What browser are you using? (if relevant)

Chrome 107.0.5304.87

How are you deploying your application? (if relevant)

Vercel

Describe the Bug

When navigating between pages using Link, the page does not scroll up by default wich is supposed to be the default behaviour of next/link

Expected Behavior

The page scrolls up when switching pages unless I manually disable this feature of next/link

Link to reproduction

https://beta.otpfy.com/

To Reproduce

  • Access https://beta.otpfy.com/
  • Scroll down until you see the "Get started for free" button
  • Click the given button
  • Check that when navigating to the auth page the scroll is preserved and not scrolled to the top

:

From SyncLinear.com | NEXT-378

Metadata

Metadata

Assignees

Labels

linear: nextConfirmed issue that is tracked by the Next.js team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions