👕
Shirts - Page 4
Showing page 4 of 5
Path: /marketplace/clothing/shirts/4
3
Path Depth
389
Total Items
4
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["clothing", "shirts", "4"]
Parsed as:
Category: "clothing", Subcategory: "shirts", Page: "4"
👕
HP shirt 37
$517
★ 4.8
32 reviews
👕
Nike shirt 38
$789
★ 4.8
86 reviews
👕
Adidas shirt 39
$615
★ 4.6
320 reviews
👕
Apple shirt 40
$105
★ 3.9
430 reviews
👕
Samsung shirt 41
$225
★ 4.6
33 reviews
👕
Sony shirt 42
$102
★ 4.9
464 reviews
👕
LG shirt 43
$795
★ 3.6
41 reviews
👕
Dell shirt 44
$574
★ 3.8
279 reviews
👕
HP shirt 45
$854
★ 3.6
317 reviews
👕
Nike shirt 46
$920
★ 4.9
204 reviews
👕
Adidas shirt 47
$706
★ 4.9
500 reviews
👕
Apple shirt 48
$1001
★ 4.7
381 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>