👖
Pants - Page 3
Showing page 3 of 5
Path: /marketplace/clothing/pants/3
3
Path Depth
267
Total Items
3
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["clothing", "pants", "3"]
Parsed as:
Category: "clothing", Subcategory: "pants", Page: "3"
👖
Samsung pant 25
$938
★ 4.8
383 reviews
👖
Sony pant 26
$364
★ 3.7
382 reviews
👖
LG pant 27
$661
★ 4.7
217 reviews
👖
Dell pant 28
$665
★ 3.8
56 reviews
👖
HP pant 29
$503
★ 4.6
83 reviews
👖
Nike pant 30
$426
★ 4.8
150 reviews
👖
Adidas pant 31
$225
★ 4.1
85 reviews
👖
Apple pant 32
$317
★ 4.8
140 reviews
👖
Samsung pant 33
$412
★ 4.2
504 reviews
👖
Sony pant 34
$500
★ 4.7
81 reviews
👖
LG pant 35
$1027
★ 3.9
289 reviews
👖
Dell pant 36
$101
★ 4.3
128 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>