📖

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

$252
4.7

208 reviews

📖

Sony fictio 50

$1001
3.7

464 reviews

📖

LG fictio 51

$556
3.9

406 reviews

📖

Dell fictio 52

$815
3.7

71 reviews

📖

HP fictio 53

$1045
4.4

387 reviews

📖

Nike fictio 54

$456
4.8

377 reviews

📖

Adidas fictio 55

$1027
4.7

58 reviews

📖

Apple fictio 56

$462
3.5

495 reviews

📖

Samsung fictio 57

$793
4.0

250 reviews

📖

Sony fictio 58

$200
4.0

263 reviews

📖

LG fictio 59

$978
4.1

350 reviews

📖

Dell fictio 60

$137
3.7

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