📖

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

$857
★ 4.8

378 reviews

📖

Sony fictio 2

$588
★ 4.7

355 reviews

📖

LG fictio 3

$881
★ 3.7

368 reviews

📖

Dell fictio 4

$898
★ 3.7

331 reviews

📖

HP fictio 5

$390
★ 4.0

210 reviews

📖

Nike fictio 6

$897
★ 4.3

76 reviews

📖

Adidas fictio 7

$874
★ 4.6

341 reviews

📖

Apple fictio 8

$237
★ 4.7

142 reviews

📖

Samsung fictio 9

$482
★ 4.8

95 reviews

📖

Sony fictio 10

$795
★ 4.2

265 reviews

📖

LG fictio 11

$413
★ 5.0

472 reviews

📖

Dell fictio 12

$529
★ 3.9

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