📖

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

$205
3.6

293 reviews

📖

Nike fictio 14

$802
4.8

259 reviews

📖

Adidas fictio 15

$65
3.8

208 reviews

📖

Apple fictio 16

$993
4.4

471 reviews

📖

Samsung fictio 17

$295
3.9

73 reviews

📖

Sony fictio 18

$1007
5.0

350 reviews

📖

LG fictio 19

$115
4.8

491 reviews

📖

Dell fictio 20

$650
3.7

445 reviews

📖

HP fictio 21

$708
4.4

496 reviews

📖

Nike fictio 22

$58
4.8

121 reviews

📖

Adidas fictio 23

$587
4.4

428 reviews

📖

Apple fictio 24

$619
4.7

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