👖
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
$690
★ 3.8
360 reviews
👖
Sony pant 50
$188
★ 4.1
367 reviews
👖
LG pant 51
$112
★ 3.5
19 reviews
👖
Dell pant 52
$600
★ 4.1
71 reviews
👖
HP pant 53
$230
★ 4.7
28 reviews
👖
Nike pant 54
$1039
★ 4.1
232 reviews
👖
Adidas pant 55
$868
★ 5.0
91 reviews
👖
Apple pant 56
$876
★ 3.6
333 reviews
👖
Samsung pant 57
$324
★ 5.0
185 reviews
👖
Sony pant 58
$394
★ 4.5
497 reviews
👖
LG pant 59
$884
★ 3.6
22 reviews
👖
Dell pant 60
$924
★ 4.2
376 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>