👕
Shirts - Page 5
Showing page 5 of 5
Path: /marketplace/clothing/shirts/5
3
Path Depth
389
Total Items
5
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["clothing", "shirts", "5"]
Parsed as:
Category: "clothing", Subcategory: "shirts", Page: "5"
👕
Samsung shirt 49
$644
★ 3.7
470 reviews
👕
Sony shirt 50
$769
★ 4.8
216 reviews
👕
LG shirt 51
$1012
★ 4.6
150 reviews
👕
Dell shirt 52
$208
★ 3.9
357 reviews
👕
HP shirt 53
$1012
★ 4.0
424 reviews
👕
Nike shirt 54
$293
★ 3.8
261 reviews
👕
Adidas shirt 55
$753
★ 3.8
223 reviews
👕
Apple shirt 56
$160
★ 3.6
361 reviews
👕
Samsung shirt 57
$469
★ 4.1
397 reviews
👕
Sony shirt 58
$157
★ 4.4
397 reviews
👕
LG shirt 59
$587
★ 4.8
121 reviews
👕
Dell shirt 60
$857
★ 3.7
118 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>