Next.js Discord

Discord Forum

How can I read the full url?

Unanswered
Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
I have a header component that is a client component and uses usePathname(). But it does not return any #id in the url. So when the url is something like: website.com/#about, the #about is not returned. I'm attempting to use the url to manage the state of what's currently scrolled to in the page.

1 Reply