📱

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

$886
4.2

397 reviews

📱

Sony phone 26

$987
4.4

78 reviews

📱

LG phone 27

$534
3.5

228 reviews

📱

Dell phone 28

$165
4.6

279 reviews

📱

HP phone 29

$646
4.0

240 reviews

📱

Nike phone 30

$112
4.3

141 reviews

📱

Adidas phone 31

$736
4.4

310 reviews

📱

Apple phone 32

$811
4.8

408 reviews

📱

Samsung phone 33

$568
4.5

405 reviews

📱

Sony phone 34

$385
4.8

308 reviews

📱

LG phone 35

$926
3.6

30 reviews

📱

Dell phone 36

$678
3.7

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