Demo
layout.tsx
shop/[[...slug]]/page.tsx

Optional Catch-all: [[...slug]]

params.slug = ["apparel","tops"]

Segments: 2

tops

Deep nested page with 2 segments: /dynamic-routes/shop/apparel/tops

Path Breakdown

  • 1apparel
  • 2tops
← Back to Overview