📱

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

$390
4.8

466 reviews

📱

Sony phone 26

$413
4.8

12 reviews

📱

LG phone 27

$1040
4.5

111 reviews

📱

Dell phone 28

$640
3.8

312 reviews

📱

HP phone 29

$448
4.9

317 reviews

📱

Nike phone 30

$873
3.9

78 reviews

📱

Adidas phone 31

$362
4.2

127 reviews

📱

Apple phone 32

$401
3.9

443 reviews

📱

Samsung phone 33

$435
4.9

395 reviews

📱

Sony phone 34

$181
4.6

436 reviews

📱

LG phone 35

$69
4.1

46 reviews

📱

Dell phone 36

$298
4.6

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