Next.js Discord

Discord Forum

how can I load an hyperlink with # on a fresh page?

Unanswered
<Milind ツ /> posted this in #help-forum
Open in Discord
Say I want to load domain/features#section, if the features page is already opened, the #section url works.

But if I try to go to the section portion directly on a fresh load, it does not work.

One thing I found that due to data fetching, since the data has not fully loaded yet, it ignores the scroll. How can I fix this?

2 Replies

Maybe i should try redirect with usePathname after the data fetching methods.
Any other way?