👖
Pants - Page 5
Showing page 5 of 5
Path: /marketplace/clothing/pants/5
3
Path Depth
267
Total Items
5
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["clothing", "pants", "5"]
Parsed as:
Category: "clothing", Subcategory: "pants", Page: "5"
👖
Samsung pant 49
$895
★ 4.3
223 reviews
👖
Sony pant 50
$921
★ 4.7
199 reviews
👖
LG pant 51
$425
★ 3.9
132 reviews
👖
Dell pant 52
$397
★ 4.0
433 reviews
👖
HP pant 53
$960
★ 4.2
36 reviews
👖
Nike pant 54
$319
★ 4.5
353 reviews
👖
Adidas pant 55
$989
★ 4.3
403 reviews
👖
Apple pant 56
$1039
★ 4.8
248 reviews
👖
Samsung pant 57
$804
★ 4.2
136 reviews
👖
Sony pant 58
$253
★ 3.7
426 reviews
👖
LG pant 59
$301
★ 3.9
373 reviews
👖
Dell pant 60
$385
★ 4.8
443 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>