📱

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

$952
4.7

197 reviews

📱

Sony tablet 50

$126
3.8

10 reviews

📱

LG tablet 51

$319
3.7

121 reviews

📱

Dell tablet 52

$779
4.2

156 reviews

📱

HP tablet 53

$331
3.6

188 reviews

📱

Nike tablet 54

$639
4.1

412 reviews

📱

Adidas tablet 55

$428
3.9

269 reviews

📱

Apple tablet 56

$622
4.3

115 reviews

📱

Samsung tablet 57

$66
3.9

373 reviews

📱

Sony tablet 58

$813
3.6

255 reviews

📱

LG tablet 59

$563
4.7

21 reviews

📱

Dell tablet 60

$842
4.7

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