📖

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

$172
★ 4.9

423 reviews

📖

Sony fictio 2

$735
★ 3.7

387 reviews

📖

LG fictio 3

$621
★ 4.4

362 reviews

📖

Dell fictio 4

$361
★ 3.6

351 reviews

📖

HP fictio 5

$243
★ 3.9

167 reviews

📖

Nike fictio 6

$677
★ 4.7

442 reviews

📖

Adidas fictio 7

$856
★ 3.7

89 reviews

📖

Apple fictio 8

$1028
★ 3.8

179 reviews

📖

Samsung fictio 9

$661
★ 3.7

419 reviews

📖

Sony fictio 10

$443
★ 4.7

480 reviews

📖

LG fictio 11

$261
★ 4.8

102 reviews

📖

Dell fictio 12

$910
★ 3.9

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