Next.js Discord

Discord Forum

<Link> Scroll Behavior

Unanswered
Gatien posted this in #help-forum
Open in Discord
Hello,

I recently upgraded my application and noticed a change in the default scroll restoration behavior when using the <Link> component for client-side navigation.

When a user navigates from a scrolled position on Page A to Page B, the application now performs a visible scroll transition from the previous scroll position down to the top of Page B ((0, 0)).

I want to restore the pre-update behavior, where navigating to a new page would result in an instantaneous jump to the very top of the target page, with absolutely no visible scroll animation.

Is there a global configuration setting within Next.js that allows us to set the default behavior of the scroll prop on <Link> ?

Thank you in advance for any insights!

0 Replies