📱

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

$836
4.9

76 reviews

📱

Sony phone 50

$914
4.7

134 reviews

📱

LG phone 51

$693
4.4

248 reviews

📱

Dell phone 52

$575
4.0

387 reviews

📱

HP phone 53

$455
3.9

242 reviews

📱

Nike phone 54

$289
4.7

192 reviews

📱

Adidas phone 55

$525
4.5

208 reviews

📱

Apple phone 56

$1044
4.1

344 reviews

📱

Samsung phone 57

$1029
4.0

199 reviews

📱

Sony phone 58

$869
3.8

478 reviews

📱

LG phone 59

$461
4.6

386 reviews

📱

Dell phone 60

$838
4.4

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>