📖

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

$450
3.8

132 reviews

📖

Sony fictio 26

$618
5.0

181 reviews

📖

LG fictio 27

$555
4.2

379 reviews

📖

Dell fictio 28

$971
4.3

163 reviews

📖

HP fictio 29

$99
4.3

195 reviews

📖

Nike fictio 30

$336
3.9

469 reviews

📖

Adidas fictio 31

$166
3.8

177 reviews

📖

Apple fictio 32

$123
4.1

503 reviews

📖

Samsung fictio 33

$109
4.0

87 reviews

📖

Sony fictio 34

$595
4.9

383 reviews

📖

LG fictio 35

$174
4.8

289 reviews

📖

Dell fictio 36

$212
4.3

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