👖
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
$377
★ 3.8
283 reviews
👖
Nike pant 38
$397
★ 4.8
367 reviews
👖
Adidas pant 39
$883
★ 4.2
255 reviews
👖
Apple pant 40
$710
★ 4.4
374 reviews
👖
Samsung pant 41
$847
★ 3.6
286 reviews
👖
Sony pant 42
$204
★ 4.4
192 reviews
👖
LG pant 43
$793
★ 4.0
224 reviews
👖
Dell pant 44
$591
★ 4.2
70 reviews
👖
HP pant 45
$105
★ 3.8
327 reviews
👖
Nike pant 46
$73
★ 3.8
145 reviews
👖
Adidas pant 47
$593
★ 3.6
27 reviews
👖
Apple pant 48
$149
★ 4.9
461 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>