📖

Fiction - Page 2

Showing page 2 of 5

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

Nested Marketplace Route

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

HP fictio 13

$96
4.9

489 reviews

📖

Nike fictio 14

$911
4.5

411 reviews

📖

Adidas fictio 15

$716
4.1

54 reviews

📖

Apple fictio 16

$133
4.3

220 reviews

📖

Samsung fictio 17

$118
3.9

234 reviews

📖

Sony fictio 18

$184
3.7

252 reviews

📖

LG fictio 19

$462
3.6

232 reviews

📖

Dell fictio 20

$302
4.5

50 reviews

📖

HP fictio 21

$225
4.1

52 reviews

📖

Nike fictio 22

$249
5.0

499 reviews

📖

Adidas fictio 23

$794
3.8

245 reviews

📖

Apple fictio 24

$399
4.7

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