📖

Fiction - Page 4

Showing page 4 of 5

Path: /marketplace/books/fiction/4
3
Path Depth
567
Total Items
4
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["books", "fiction", "4"]
Parsed as: Category: "books", Subcategory: "fiction", Page: "4"
📖

HP fictio 37

$869
5.0

423 reviews

📖

Nike fictio 38

$672
4.3

195 reviews

📖

Adidas fictio 39

$258
4.8

278 reviews

📖

Apple fictio 40

$846
4.9

137 reviews

📖

Samsung fictio 41

$786
3.6

319 reviews

📖

Sony fictio 42

$211
4.7

357 reviews

📖

LG fictio 43

$287
3.7

10 reviews

📖

Dell fictio 44

$721
4.1

57 reviews

📖

HP fictio 45

$592
3.7

108 reviews

📖

Nike fictio 46

$953
4.9

103 reviews

📖

Adidas fictio 47

$696
4.4

120 reviews

📖

Apple fictio 48

$573
4.1

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