#Thread
1 messages · Page 1 of 1 (latest)
route parameters are also passed into router.query. You should be able to access the slug with useRouter instead of trying to parse the pathname
hmm
I dont see this on the docs at all though
I am refering to nextjs13 btw
"The query object has been removed and is replaced by useSearchParams()"
but this does not seem to get slugs
just paramaters in the url
that's the same thing, no?
whats the same thing?
they are missing a useParams function for now
which i assume that will give u back slugs but right now it does not exist
Ah, I didn't notice this
The query object has been removed and is replaced by useSearchParams()
yeah