👕
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
$351
★ 4.1
255 reviews
👕
Nike shirt 38
$733
★ 4.6
186 reviews
👕
Adidas shirt 39
$434
★ 4.2
382 reviews
👕
Apple shirt 40
$221
★ 4.5
19 reviews
👕
Samsung shirt 41
$916
★ 4.1
317 reviews
👕
Sony shirt 42
$67
★ 3.8
266 reviews
👕
LG shirt 43
$1015
★ 4.6
432 reviews
👕
Dell shirt 44
$817
★ 4.4
243 reviews
👕
HP shirt 45
$194
★ 4.4
188 reviews
👕
Nike shirt 46
$500
★ 4.3
508 reviews
👕
Adidas shirt 47
$50
★ 3.8
475 reviews
👕
Apple shirt 48
$191
★ 4.4
160 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>