📱

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

$998
4.0

161 reviews

📱

Sony tablet 26

$499
4.8

20 reviews

📱

LG tablet 27

$806
3.7

201 reviews

📱

Dell tablet 28

$432
4.7

180 reviews

📱

HP tablet 29

$673
4.7

365 reviews

📱

Nike tablet 30

$296
4.1

504 reviews

📱

Adidas tablet 31

$678
4.6

185 reviews

📱

Apple tablet 32

$324
4.3

439 reviews

📱

Samsung tablet 33

$1028
3.5

241 reviews

📱

Sony tablet 34

$971
4.5

10 reviews

📱

LG tablet 35

$340
4.7

110 reviews

📱

Dell tablet 36

$567
3.7

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