📱

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

$542
4.6

413 reviews

📱

Sony phone 50

$799
4.4

454 reviews

📱

LG phone 51

$1035
4.5

123 reviews

📱

Dell phone 52

$796
4.2

168 reviews

📱

HP phone 53

$55
4.9

139 reviews

📱

Nike phone 54

$518
3.7

16 reviews

📱

Adidas phone 55

$312
4.2

77 reviews

📱

Apple phone 56

$638
4.6

277 reviews

📱

Samsung phone 57

$507
3.6

278 reviews

📱

Sony phone 58

$1048
4.6

44 reviews

📱

LG phone 59

$304
4.5

176 reviews

📱

Dell phone 60

$413
3.7

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