📱

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

$659
4.1

10 reviews

📱

Sony phone 50

$912
3.7

321 reviews

📱

LG phone 51

$883
3.7

177 reviews

📱

Dell phone 52

$101
3.9

65 reviews

📱

HP phone 53

$482
3.7

287 reviews

📱

Nike phone 54

$254
4.6

345 reviews

📱

Adidas phone 55

$811
4.5

377 reviews

📱

Apple phone 56

$327
4.8

342 reviews

📱

Samsung phone 57

$334
4.6

166 reviews

📱

Sony phone 58

$935
3.9

387 reviews

📱

LG phone 59

$686
3.5

255 reviews

📱

Dell phone 60

$731
3.5

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