scroll issue with <Link />
Unanswered
Barbary Lion posted this in #help-forum
Barbary LionOP
New page doesn't get scrolled to top when navigate to new page through <Link />. Is this a bug or it works that way? Help I need a solution.
4 Replies
It should scroll to the top by default when navigating to a page by clicking on its link. The only case in which id doesn't do that is when you use the back/forward buttons in your browser.
See: https://nextjs.org/docs/app/api-reference/components/link#scroll
See: https://nextjs.org/docs/app/api-reference/components/link#scroll
Barbary LionOP
@not-milo.tsx check this site https://www.higrow.xyz . click organize button after some scrolling and see what happens.
Well, that's a bug... Have you tried removing the inner
button element? Maybe it's interfering with it in weird ways.Sloth bear
Did you manage to solve it?