Is there any way to get the path in the next.js router without an id? When I use router.pathname
I get a path like: "/product/id" Is there any way to get a path without th id: "/product" I can do it that way:
`/${pathname.split('/')[1]}` // /product
but maybe there is a better way?