📱

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

$206
4.3

497 reviews

📱

Sony tablet 26

$905
5.0

478 reviews

📱

LG tablet 27

$428
3.8

178 reviews

📱

Dell tablet 28

$608
3.9

185 reviews

📱

HP tablet 29

$749
3.6

347 reviews

📱

Nike tablet 30

$383
4.7

493 reviews

📱

Adidas tablet 31

$844
4.3

181 reviews

📱

Apple tablet 32

$533
3.7

245 reviews

📱

Samsung tablet 33

$872
4.6

380 reviews

📱

Sony tablet 34

$685
4.7

427 reviews

📱

LG tablet 35

$265
3.9

133 reviews

📱

Dell tablet 36

$123
4.4

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