Next.js Discord

Discord Forum

How to get # fragment from url in NextJS 13

Unanswered
Mini Satin posted this in #help-forum
Open in Discord
Avatar
Mini SatinOP
How to get fragment part of the url in NextJs 13? useSearchParams and useParhname don't contain this data. Thanks!

1 Reply

Avatar
joulev
you must use a client component and read it from window.location.hash or similar