📖

Fiction - Page 5

Showing page 5 of 5

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

Nested Marketplace Route

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

Samsung fictio 49

$60
4.0

337 reviews

📖

Sony fictio 50

$713
4.1

238 reviews

📖

LG fictio 51

$549
4.2

102 reviews

📖

Dell fictio 52

$723
4.0

436 reviews

📖

HP fictio 53

$768
3.8

402 reviews

📖

Nike fictio 54

$222
3.6

77 reviews

📖

Adidas fictio 55

$302
3.7

459 reviews

📖

Apple fictio 56

$713
4.5

495 reviews

📖

Samsung fictio 57

$921
4.0

255 reviews

📖

Sony fictio 58

$826
5.0

434 reviews

📖

LG fictio 59

$379
4.5

53 reviews

📖

Dell fictio 60

$991
4.6

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