📖

Fiction - Page 1

Showing page 1 of 5

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

Nested Marketplace Route

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

Samsung fictio 1

$481
★ 4.5

65 reviews

📖

Sony fictio 2

$226
★ 4.2

71 reviews

📖

LG fictio 3

$52
★ 4.0

422 reviews

📖

Dell fictio 4

$624
★ 5.0

247 reviews

📖

HP fictio 5

$957
★ 3.6

154 reviews

📖

Nike fictio 6

$346
★ 4.4

334 reviews

📖

Adidas fictio 7

$746
★ 4.2

483 reviews

📖

Apple fictio 8

$970
★ 4.4

99 reviews

📖

Samsung fictio 9

$568
★ 4.6

501 reviews

📖

Sony fictio 10

$434
★ 3.5

262 reviews

📖

LG fictio 11

$877
★ 4.5

82 reviews

📖

Dell fictio 12

$69
★ 3.5

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