📖

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

$247
4.9

365 reviews

📖

Sony fictio 26

$246
5.0

287 reviews

📖

LG fictio 27

$847
4.9

488 reviews

📖

Dell fictio 28

$880
5.0

264 reviews

📖

HP fictio 29

$855
3.7

287 reviews

📖

Nike fictio 30

$196
3.6

63 reviews

📖

Adidas fictio 31

$811
4.7

230 reviews

📖

Apple fictio 32

$935
4.0

154 reviews

📖

Samsung fictio 33

$710
4.1

271 reviews

📖

Sony fictio 34

$692
4.6

315 reviews

📖

LG fictio 35

$146
5.0

509 reviews

📖

Dell fictio 36

$758
3.9

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