Dynamic Pages with optional middle part in URL

Hi @marco3

By keeping the default value, I meant to have a constant value in the case, a category is not available. For example: If the default value is a string default-category, then the URLs will be like:

/distribution1/category1/product1
/distribution1/category2/product2
/distribution2/default-category/product3 (Here Product3 is not having any category)

So in /pages/:distribution/:category/index.tsx, you will apply a check for this value and can do the handling accordingly.

That way you will have the same structure across the site.

Thanks,
Priyanka