Hello!
I have a question regarding defining page paths.
Suppose a client wants to create an unlimited number of pages with paths like:
/catalog/product1
/catalog/product2
/blog/product1
/blog/product2
In the "Catch-all paths" section of the documentation, it says:
params.uid
contains an array of each part of the URL separated by a/
.
In this example, the last part is the document's UID. /const uid = params.pagePath[params.pagePath.length - 1] const page = await client.getByUID('page', uid)
Does this mean there is a strict requirement for the last part of the URL to be unique?
How can I bypass this limitation?
I want the client (without changing the code) to be able to add an unlimited number of categories ('catalog', 'blog', etc.) and an unlimited number of pages within categories.
I'm using Next 14 and App Router.
Thank you.