📱

Tablets - Page 5

Showing page 5 of 5

Path: /marketplace/electronics/tablets/5
3
Path Depth
89
Total Items
5
Current Page
12
Items Shown

Nested Marketplace Route

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

Samsung tablet 49

$128
4.7

264 reviews

📱

Sony tablet 50

$320
4.2

214 reviews

📱

LG tablet 51

$186
3.6

332 reviews

📱

Dell tablet 52

$563
4.5

489 reviews

📱

HP tablet 53

$930
3.9

226 reviews

📱

Nike tablet 54

$353
3.9

467 reviews

📱

Adidas tablet 55

$225
4.5

499 reviews

📱

Apple tablet 56

$1026
4.6

419 reviews

📱

Samsung tablet 57

$262
4.1

34 reviews

📱

Sony tablet 58

$72
4.2

368 reviews

📱

LG tablet 59

$666
4.1

328 reviews

📱

Dell tablet 60

$363
4.5

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