👕

Shirts - Page 1

Showing page 1 of 5

Path: /marketplace/clothing/shirts/1
3
Path Depth
389
Total Items
1
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["clothing", "shirts", "1"]
Parsed as: Category: "clothing", Subcategory: "shirts", Page: "1"
👕

Samsung shirt 1

$72
★ 4.5

128 reviews

👕

Sony shirt 2

$183
★ 4.9

325 reviews

👕

LG shirt 3

$181
★ 4.6

82 reviews

👕

Dell shirt 4

$297
★ 4.5

242 reviews

👕

HP shirt 5

$114
★ 3.8

266 reviews

👕

Nike shirt 6

$1024
★ 3.9

248 reviews

👕

Adidas shirt 7

$946
★ 3.7

408 reviews

👕

Apple shirt 8

$830
★ 4.2

137 reviews

👕

Samsung shirt 9

$795
★ 4.9

440 reviews

👕

Sony shirt 10

$177
★ 4.0

347 reviews

👕

LG shirt 11

$881
★ 4.1

62 reviews

👕

Dell shirt 12

$175
★ 4.4

170 reviews

Try These Marketplace Paths

/marketplace/electronics → Electronics category
/marketplace/electronics/phones → Phone subcategory
/marketplace/electronics/phones/2 → Page 2 of phones
/marketplace/clothing/shoes/1 → Page 1 of shoes

Nested Marketplace Implementation

---
// File: /marketplace/[...path].astro
export function getStaticPaths() {
  // Pre-generate all possible marketplace paths
  return [
    { params: { path: 'electronics' } },
    { params: { path: 'electronics/phones' } },
    { params: { path: 'electronics/phones/1' } },
    { params: { path: 'electronics/phones/2' } },
    // ... more paths
  ];
}

const { path } = Astro.params;
const [category, subcategory, page] = path.split('/');
---

<h1>{category} → {subcategory} → Page {page}</h1>