📱

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

$274
4.2

490 reviews

📱

Sony tablet 50

$320
4.1

87 reviews

📱

LG tablet 51

$331
3.8

424 reviews

📱

Dell tablet 52

$921
4.8

229 reviews

📱

HP tablet 53

$663
3.6

358 reviews

📱

Nike tablet 54

$1002
3.7

201 reviews

📱

Adidas tablet 55

$252
4.2

11 reviews

📱

Apple tablet 56

$917
3.8

307 reviews

📱

Samsung tablet 57

$877
3.9

180 reviews

📱

Sony tablet 58

$263
4.9

206 reviews

📱

LG tablet 59

$782
3.7

97 reviews

📱

Dell tablet 60

$1002
4.4

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