📱

Tablets - Page 5

Showing page 5 of 5

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

Nested Marketplace Route

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

Samsung tablet 49

$741
4.1

147 reviews

📱

Sony tablet 50

$648
4.5

358 reviews

📱

LG tablet 51

$750
3.6

494 reviews

📱

Dell tablet 52

$563
4.6

344 reviews

📱

HP tablet 53

$672
5.0

291 reviews

📱

Nike tablet 54

$102
3.9

289 reviews

📱

Adidas tablet 55

$764
3.7

252 reviews

📱

Apple tablet 56

$397
4.6

443 reviews

📱

Samsung tablet 57

$916
4.1

122 reviews

📱

Sony tablet 58

$775
4.9

392 reviews

📱

LG tablet 59

$755
4.9

235 reviews

📱

Dell tablet 60

$1005
4.6

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