📱

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

$63
4.2

286 reviews

📱

Sony phone 26

$1002
4.7

351 reviews

📱

LG phone 27

$60
3.7

316 reviews

📱

Dell phone 28

$296
4.6

225 reviews

📱

HP phone 29

$805
3.8

415 reviews

📱

Nike phone 30

$478
4.9

413 reviews

📱

Adidas phone 31

$586
4.6

32 reviews

📱

Apple phone 32

$82
3.7

473 reviews

📱

Samsung phone 33

$416
4.0

367 reviews

📱

Sony phone 34

$684
3.6

361 reviews

📱

LG phone 35

$89
3.5

256 reviews

📱

Dell phone 36

$427
4.3

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