📖

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

$890
★ 4.9

61 reviews

📖

Sony fictio 2

$1019
★ 4.3

358 reviews

📖

LG fictio 3

$271
★ 4.6

76 reviews

📖

Dell fictio 4

$103
★ 3.8

386 reviews

📖

HP fictio 5

$820
★ 4.8

182 reviews

📖

Nike fictio 6

$804
★ 3.8

389 reviews

📖

Adidas fictio 7

$285
★ 3.6

122 reviews

📖

Apple fictio 8

$480
★ 4.0

168 reviews

📖

Samsung fictio 9

$994
★ 4.2

339 reviews

📖

Sony fictio 10

$260
★ 4.9

488 reviews

📖

LG fictio 11

$442
★ 4.2

211 reviews

📖

Dell fictio 12

$205
★ 3.9

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