Jun 03, 2022

NextJS Link not scrolling to top of page

With NextJS, Link scrolls to the top of a new page by default. You can override this with scroll={false}.

If your Link isn't scrolling to the top of a new page by default, it's likely because you have a

overflow-x: hidden

somewhere in you css. Remove this code and if you don't have any other overrides, Link should scroll your users back up to the top

Leave a Reply

Related Posts