📖

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

$103
4.6

311 reviews

📖

Nike fictio 38

$762
4.0

200 reviews

📖

Adidas fictio 39

$992
4.1

251 reviews

📖

Apple fictio 40

$965
4.8

159 reviews

📖

Samsung fictio 41

$387
3.8

290 reviews

📖

Sony fictio 42

$243
3.6

175 reviews

📖

LG fictio 43

$436
4.2

386 reviews

📖

Dell fictio 44

$981
3.9

256 reviews

📖

HP fictio 45

$873
3.5

459 reviews

📖

Nike fictio 46

$802
3.6

51 reviews

📖

Adidas fictio 47

$819
3.8

201 reviews

📖

Apple fictio 48

$253
3.6

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