👖
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
$693
★ 4.3
100 reviews
👖
Nike pant 38
$652
★ 4.0
319 reviews
👖
Adidas pant 39
$135
★ 4.6
224 reviews
👖
Apple pant 40
$57
★ 4.2
246 reviews
👖
Samsung pant 41
$634
★ 3.6
354 reviews
👖
Sony pant 42
$590
★ 4.1
268 reviews
👖
LG pant 43
$412
★ 4.0
111 reviews
👖
Dell pant 44
$246
★ 4.4
411 reviews
👖
HP pant 45
$926
★ 3.7
157 reviews
👖
Nike pant 46
$536
★ 4.1
281 reviews
👖
Adidas pant 47
$993
★ 4.9
284 reviews
👖
Apple pant 48
$825
★ 4.5
113 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>