#ok so how do i get the path in a server
1 messages · Page 1 of 1 (latest)
if it's /app/orders/[id]/page.tsx you can access id in params - look in the docs https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes
in this instaance i want orders
but then you know the path ... it's just /orders
oh i mean like in layout
layout does not get the url
I know but layouts are tied to a specific node in the URL structure - and the params are passed for all dynamic parts of the path