You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you have a <Link /> component that points to an arbitrary section of a different page, e.g. <Link href="/#who-we-are" /> (in this case, I want to go to who-we-are section of /), it will only work when that link is pressed from another page.
When this link is pressed on the / page, Next will not scroll into that view. I believe it's because we don't have any code in Container.js to handle hash change. We only seem to handle didMount scenario.
Also, since we are using history.pushState, there's no hashchange event being fired. That means we need to integrate handling logic somehow into the router itself.
The text was updated successfully, but these errors were encountered:
When you have a
<Link />
component that points to an arbitrary section of a different page, e.g.<Link href="/#who-we-are" />
(in this case, I want to go towho-we-are
section of/
), it will only work when that link is pressed from another page.When this link is pressed on the
/
page, Next will not scroll into that view. I believe it's because we don't have any code inContainer.js
to handle hash change. We only seem to handledidMount
scenario.Also, since we are using
history.pushState
, there's nohashchange
event being fired. That means we need to integrate handling logic somehow into the router itself.The text was updated successfully, but these errors were encountered: