📖

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

$702
4.1

223 reviews

📖

Nike fictio 38

$887
4.5

108 reviews

📖

Adidas fictio 39

$785
4.5

400 reviews

📖

Apple fictio 40

$644
4.5

22 reviews

📖

Samsung fictio 41

$973
4.1

171 reviews

📖

Sony fictio 42

$202
3.9

153 reviews

📖

LG fictio 43

$506
4.8

20 reviews

📖

Dell fictio 44

$184
4.0

46 reviews

📖

HP fictio 45

$234
4.1

128 reviews

📖

Nike fictio 46

$144
4.6

311 reviews

📖

Adidas fictio 47

$567
3.6

145 reviews

📖

Apple fictio 48

$646
4.2

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