🍳

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

$919
4.2

124 reviews

🍳

Nike kitche 14

$796
3.8

254 reviews

🍳

Adidas kitche 15

$388
4.3

268 reviews

🍳

Apple kitche 16

$679
3.9

237 reviews

🍳

Samsung kitche 17

$176
4.8

268 reviews

🍳

Sony kitche 18

$521
4.7

227 reviews

🍳

LG kitche 19

$281
4.4

276 reviews

🍳

Dell kitche 20

$960
4.9

96 reviews

🍳

HP kitche 21

$346
3.6

73 reviews

🍳

Nike kitche 22

$1042
4.8

124 reviews

🍳

Adidas kitche 23

$757
4.7

348 reviews

🍳

Apple kitche 24

$662
4.6

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