👖
Pants - Page 4
Showing page 4 of 5
Path: /marketplace/clothing/pants/4
3
Path Depth
267
Total Items
4
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["clothing", "pants", "4"]
Parsed as:
Category: "clothing", Subcategory: "pants", Page: "4"
👖
HP pant 37
$798
★ 3.5
73 reviews
👖
Nike pant 38
$692
★ 3.6
250 reviews
👖
Adidas pant 39
$304
★ 3.7
147 reviews
👖
Apple pant 40
$589
★ 4.4
214 reviews
👖
Samsung pant 41
$585
★ 4.9
330 reviews
👖
Sony pant 42
$364
★ 3.9
333 reviews
👖
LG pant 43
$1045
★ 4.2
266 reviews
👖
Dell pant 44
$262
★ 4.8
353 reviews
👖
HP pant 45
$1025
★ 4.7
26 reviews
👖
Nike pant 46
$190
★ 4.5
471 reviews
👖
Adidas pant 47
$86
★ 3.8
347 reviews
👖
Apple pant 48
$681
★ 3.9
203 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>