📖

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

$998
4.6

505 reviews

📖

Nike fictio 38

$138
3.9

391 reviews

📖

Adidas fictio 39

$118
3.6

308 reviews

📖

Apple fictio 40

$797
4.3

47 reviews

📖

Samsung fictio 41

$498
3.6

306 reviews

📖

Sony fictio 42

$115
3.7

423 reviews

📖

LG fictio 43

$478
4.9

81 reviews

📖

Dell fictio 44

$231
3.9

69 reviews

📖

HP fictio 45

$291
4.6

226 reviews

📖

Nike fictio 46

$925
4.9

235 reviews

📖

Adidas fictio 47

$283
3.6

274 reviews

📖

Apple fictio 48

$922
4.5

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