📖

Fiction - Page 4

Showing page 4 of 5

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

Nested Marketplace Route

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

HP fictio 37

$607
4.1

267 reviews

📖

Nike fictio 38

$165
4.2

93 reviews

📖

Adidas fictio 39

$54
4.1

217 reviews

📖

Apple fictio 40

$324
4.7

440 reviews

📖

Samsung fictio 41

$969
5.0

34 reviews

📖

Sony fictio 42

$614
4.5

407 reviews

📖

LG fictio 43

$929
3.7

252 reviews

📖

Dell fictio 44

$370
4.7

99 reviews

📖

HP fictio 45

$859
4.3

87 reviews

📖

Nike fictio 46

$770
4.9

338 reviews

📖

Adidas fictio 47

$188
4.6

407 reviews

📖

Apple fictio 48

$282
4.8

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