📱

Smartphones - Page 3

Showing page 3 of 5

Path: /marketplace/electronics/phones/3
3
Path Depth
245
Total Items
3
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["electronics", "phones", "3"]
Parsed as: Category: "electronics", Subcategory: "phones", Page: "3"
📱

Samsung phone 25

$167
4.2

140 reviews

📱

Sony phone 26

$761
4.8

85 reviews

📱

LG phone 27

$845
4.7

57 reviews

📱

Dell phone 28

$981
4.3

91 reviews

📱

HP phone 29

$748
4.5

204 reviews

📱

Nike phone 30

$611
4.0

237 reviews

📱

Adidas phone 31

$354
3.8

66 reviews

📱

Apple phone 32

$886
4.6

142 reviews

📱

Samsung phone 33

$346
4.4

311 reviews

📱

Sony phone 34

$388
4.5

265 reviews

📱

LG phone 35

$554
4.1

462 reviews

📱

Dell phone 36

$704
4.2

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