📖

Fiction - Page 1

Showing page 1 of 5

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

Nested Marketplace Route

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

Samsung fictio 1

$999
★ 3.7

146 reviews

📖

Sony fictio 2

$980
★ 4.4

127 reviews

📖

LG fictio 3

$197
★ 4.7

240 reviews

📖

Dell fictio 4

$446
★ 4.0

250 reviews

📖

HP fictio 5

$917
★ 4.1

129 reviews

📖

Nike fictio 6

$241
★ 4.1

459 reviews

📖

Adidas fictio 7

$187
★ 4.1

196 reviews

📖

Apple fictio 8

$61
★ 3.8

443 reviews

📖

Samsung fictio 9

$562
★ 3.7

456 reviews

📖

Sony fictio 10

$765
★ 4.3

451 reviews

📖

LG fictio 11

$219
★ 4.2

13 reviews

📖

Dell fictio 12

$737
★ 4.7

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