📱

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

$356
3.7

449 reviews

📱

Sony phone 50

$98
3.6

170 reviews

📱

LG phone 51

$814
4.8

420 reviews

📱

Dell phone 52

$360
3.6

209 reviews

📱

HP phone 53

$318
3.7

109 reviews

📱

Nike phone 54

$338
4.4

181 reviews

📱

Adidas phone 55

$479
3.9

226 reviews

📱

Apple phone 56

$208
5.0

409 reviews

📱

Samsung phone 57

$869
3.6

321 reviews

📱

Sony phone 58

$1049
4.1

93 reviews

📱

LG phone 59

$893
4.7

197 reviews

📱

Dell phone 60

$916
5.0

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