👖
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
$284
★ 4.5
95 reviews
👖
Sony pant 50
$558
★ 3.5
10 reviews
👖
LG pant 51
$986
★ 4.3
401 reviews
👖
Dell pant 52
$83
★ 4.2
376 reviews
👖
HP pant 53
$54
★ 3.7
157 reviews
👖
Nike pant 54
$864
★ 4.7
214 reviews
👖
Adidas pant 55
$926
★ 4.1
231 reviews
👖
Apple pant 56
$312
★ 3.8
54 reviews
👖
Samsung pant 57
$747
★ 4.9
111 reviews
👖
Sony pant 58
$373
★ 3.9
491 reviews
👖
LG pant 59
$513
★ 4.4
130 reviews
👖
Dell pant 60
$845
★ 3.9
191 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>