👕
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
$546
★ 3.7
403 reviews
👕
Nike shirt 38
$810
★ 4.7
219 reviews
👕
Adidas shirt 39
$715
★ 4.7
111 reviews
👕
Apple shirt 40
$702
★ 5.0
461 reviews
👕
Samsung shirt 41
$905
★ 4.2
326 reviews
👕
Sony shirt 42
$245
★ 4.0
124 reviews
👕
LG shirt 43
$845
★ 4.4
42 reviews
👕
Dell shirt 44
$187
★ 3.6
368 reviews
👕
HP shirt 45
$905
★ 4.2
423 reviews
👕
Nike shirt 46
$341
★ 3.9
215 reviews
👕
Adidas shirt 47
$994
★ 3.5
226 reviews
👕
Apple shirt 48
$718
★ 4.6
323 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>