📖

Fiction - Page 3

Showing page 3 of 5

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

Nested Marketplace Route

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

Samsung fictio 25

$594
4.0

226 reviews

📖

Sony fictio 26

$745
4.7

74 reviews

📖

LG fictio 27

$884
4.6

179 reviews

📖

Dell fictio 28

$86
3.9

506 reviews

📖

HP fictio 29

$785
3.7

29 reviews

📖

Nike fictio 30

$669
4.0

38 reviews

📖

Adidas fictio 31

$436
3.9

138 reviews

📖

Apple fictio 32

$791
4.1

150 reviews

📖

Samsung fictio 33

$325
4.6

271 reviews

📖

Sony fictio 34

$958
3.7

99 reviews

📖

LG fictio 35

$908
4.2

176 reviews

📖

Dell fictio 36

$431
3.8

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