🍳

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

$399
3.7

130 reviews

🍳

Nike kitche 38

$722
3.7

298 reviews

🍳

Adidas kitche 39

$573
4.8

422 reviews

🍳

Apple kitche 40

$799
4.9

43 reviews

🍳

Samsung kitche 41

$957
4.8

139 reviews

🍳

Sony kitche 42

$543
3.6

337 reviews

🍳

LG kitche 43

$111
4.8

138 reviews

🍳

Dell kitche 44

$532
4.0

165 reviews

🍳

HP kitche 45

$305
4.3

25 reviews

🍳

Nike kitche 46

$680
4.3

450 reviews

🍳

Adidas kitche 47

$863
3.7

475 reviews

🍳

Apple kitche 48

$1005
4.7

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