📱

Tablets - Page 3

Showing page 3 of 5

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

Nested Marketplace Route

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

Samsung tablet 25

$863
4.6

253 reviews

📱

Sony tablet 26

$798
3.7

251 reviews

📱

LG tablet 27

$334
3.5

249 reviews

📱

Dell tablet 28

$890
4.6

245 reviews

📱

HP tablet 29

$131
4.3

293 reviews

📱

Nike tablet 30

$298
4.2

163 reviews

📱

Adidas tablet 31

$373
3.7

183 reviews

📱

Apple tablet 32

$853
4.0

83 reviews

📱

Samsung tablet 33

$986
3.8

18 reviews

📱

Sony tablet 34

$324
4.1

492 reviews

📱

LG tablet 35

$618
4.5

67 reviews

📱

Dell tablet 36

$243
4.3

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