🍳

Kitchen - Page 2

Showing page 2 of 5

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

Nested Marketplace Route

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

HP kitche 13

$138
4.7

347 reviews

🍳

Nike kitche 14

$501
3.6

457 reviews

🍳

Adidas kitche 15

$390
4.9

159 reviews

🍳

Apple kitche 16

$855
4.2

377 reviews

🍳

Samsung kitche 17

$511
3.9

180 reviews

🍳

Sony kitche 18

$572
4.3

107 reviews

🍳

LG kitche 19

$140
3.6

56 reviews

🍳

Dell kitche 20

$315
4.8

306 reviews

🍳

HP kitche 21

$914
4.8

441 reviews

🍳

Nike kitche 22

$320
3.6

327 reviews

🍳

Adidas kitche 23

$387
5.0

489 reviews

🍳

Apple kitche 24

$656
3.5

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