#Thread

1 messages · Page 1 of 1 (latest)

unreal lynx
#

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

mystic sable
#

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

unreal lynx
#

that's the same thing, no?

mystic sable
#

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

unreal lynx
#

Ah, I didn't notice this
The query object has been removed and is replaced by useSearchParams()

unreal lynx
#

You can grab the params in the page defenition