🍳

Kitchen - Page 4

Showing page 4 of 5

Path: /marketplace/home/kitchen/4
3
Path Depth
223
Total Items
4
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["home", "kitchen", "4"]
Parsed as: Category: "home", Subcategory: "kitchen", Page: "4"
🍳

HP kitche 37

$644
4.3

261 reviews

🍳

Nike kitche 38

$293
3.8

239 reviews

🍳

Adidas kitche 39

$102
3.6

28 reviews

🍳

Apple kitche 40

$780
3.5

282 reviews

🍳

Samsung kitche 41

$474
5.0

323 reviews

🍳

Sony kitche 42

$92
4.1

462 reviews

🍳

LG kitche 43

$617
4.4

128 reviews

🍳

Dell kitche 44

$51
3.7

407 reviews

🍳

HP kitche 45

$394
4.2

507 reviews

🍳

Nike kitche 46

$241
3.7

391 reviews

🍳

Adidas kitche 47

$342
4.2

139 reviews

🍳

Apple kitche 48

$792
3.6

19 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>