📱

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

$728
4.3

139 reviews

📱

Sony tablet 26

$755
4.2

178 reviews

📱

LG tablet 27

$534
4.6

384 reviews

📱

Dell tablet 28

$366
4.7

331 reviews

📱

HP tablet 29

$518
4.8

432 reviews

📱

Nike tablet 30

$741
3.8

123 reviews

📱

Adidas tablet 31

$658
3.6

460 reviews

📱

Apple tablet 32

$902
3.7

334 reviews

📱

Samsung tablet 33

$107
4.7

388 reviews

📱

Sony tablet 34

$1042
4.0

69 reviews

📱

LG tablet 35

$438
4.1

463 reviews

📱

Dell tablet 36

$473
3.8

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