📱

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

$547
4.6

430 reviews

📱

Sony phone 50

$893
4.5

126 reviews

📱

LG phone 51

$414
4.3

179 reviews

📱

Dell phone 52

$362
4.9

433 reviews

📱

HP phone 53

$226
4.1

79 reviews

📱

Nike phone 54

$792
4.4

261 reviews

📱

Adidas phone 55

$548
4.2

111 reviews

📱

Apple phone 56

$930
4.7

463 reviews

📱

Samsung phone 57

$674
4.3

260 reviews

📱

Sony phone 58

$1019
4.0

87 reviews

📱

LG phone 59

$508
3.8

331 reviews

📱

Dell phone 60

$893
3.9

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