📱

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

$982
4.1

35 reviews

📱

Sony tablet 26

$743
3.9

10 reviews

📱

LG tablet 27

$902
3.9

381 reviews

📱

Dell tablet 28

$748
4.0

276 reviews

📱

HP tablet 29

$350
3.8

91 reviews

📱

Nike tablet 30

$518
4.2

310 reviews

📱

Adidas tablet 31

$693
4.4

287 reviews

📱

Apple tablet 32

$175
3.7

157 reviews

📱

Samsung tablet 33

$856
4.8

17 reviews

📱

Sony tablet 34

$752
3.9

483 reviews

📱

LG tablet 35

$429
4.9

174 reviews

📱

Dell tablet 36

$982
4.6

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