🍳

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

$383
4.4

358 reviews

🍳

Nike kitche 38

$80
4.5

105 reviews

🍳

Adidas kitche 39

$199
4.9

503 reviews

🍳

Apple kitche 40

$374
4.6

357 reviews

🍳

Samsung kitche 41

$130
3.9

169 reviews

🍳

Sony kitche 42

$573
3.7

143 reviews

🍳

LG kitche 43

$852
3.9

77 reviews

🍳

Dell kitche 44

$597
3.8

123 reviews

🍳

HP kitche 45

$275
3.7

316 reviews

🍳

Nike kitche 46

$805
4.9

231 reviews

🍳

Adidas kitche 47

$952
4.9

191 reviews

🍳

Apple kitche 48

$571
4.8

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