👕

Shirts - Page 2

Showing page 2 of 5

Path: /marketplace/clothing/shirts/2
3
Path Depth
389
Total Items
2
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["clothing", "shirts", "2"]
Parsed as: Category: "clothing", Subcategory: "shirts", Page: "2"
👕

HP shirt 13

$781
4.7

185 reviews

👕

Nike shirt 14

$1002
4.8

265 reviews

👕

Adidas shirt 15

$1025
4.4

175 reviews

👕

Apple shirt 16

$901
4.3

302 reviews

👕

Samsung shirt 17

$799
4.0

340 reviews

👕

Sony shirt 18

$89
4.2

401 reviews

👕

LG shirt 19

$826
4.4

467 reviews

👕

Dell shirt 20

$1049
4.6

232 reviews

👕

HP shirt 21

$791
4.0

70 reviews

👕

Nike shirt 22

$66
4.3

202 reviews

👕

Adidas shirt 23

$808
3.6

459 reviews

👕

Apple shirt 24

$1001
4.4

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