How to get my id?
Answered
Hermit Thrush posted this in #help-forum
Hermit ThrushOP
I have this route: localhost:3000/domain/domain_123456/register. How to get the id?
Answered by B33fb0n3
You can create a dynamic segment inside your routing like
/domain/[id]/register. Then you can access it via the params like this: https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes#example3 Replies
@Hermit Thrush I have this route: localhost:3000/domain/domain_123456/register. How to get the id?
You can create a dynamic segment inside your routing like
/domain/[id]/register. Then you can access it via the params like this: https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes#exampleAnswer
Hermit ThrushOP
Thanks!
happy to help