📱

Smartphones - Page 5

Showing page 5 of 5

Path: /marketplace/electronics/phones/5
3
Path Depth
245
Total Items
5
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["electronics", "phones", "5"]
Parsed as: Category: "electronics", Subcategory: "phones", Page: "5"
📱

Samsung phone 49

$94
4.7

390 reviews

📱

Sony phone 50

$557
4.1

88 reviews

📱

LG phone 51

$938
4.2

354 reviews

📱

Dell phone 52

$467
4.1

412 reviews

📱

HP phone 53

$144
4.2

268 reviews

📱

Nike phone 54

$782
4.0

210 reviews

📱

Adidas phone 55

$339
3.9

472 reviews

📱

Apple phone 56

$504
4.6

307 reviews

📱

Samsung phone 57

$821
4.6

134 reviews

📱

Sony phone 58

$250
3.7

411 reviews

📱

LG phone 59

$106
4.0

440 reviews

📱

Dell phone 60

$666
3.6

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