📖

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

$402
4.2

406 reviews

📖

Nike fictio 38

$1019
3.8

247 reviews

📖

Adidas fictio 39

$677
4.5

325 reviews

📖

Apple fictio 40

$535
4.0

229 reviews

📖

Samsung fictio 41

$974
3.9

446 reviews

📖

Sony fictio 42

$186
4.9

293 reviews

📖

LG fictio 43

$367
4.3

73 reviews

📖

Dell fictio 44

$686
3.7

174 reviews

📖

HP fictio 45

$720
4.9

300 reviews

📖

Nike fictio 46

$177
4.5

445 reviews

📖

Adidas fictio 47

$353
3.7

369 reviews

📖

Apple fictio 48

$1036
4.6

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