👕
Shirts - Page 2
Showing page 2 of 5
Path: /marketplace/clothing/shirts/2
3
Path Depth
389
Total Items
2
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["clothing", "shirts", "2"]
Parsed as:
Category: "clothing", Subcategory: "shirts", Page: "2"
👕
HP shirt 13
$1016
★ 4.7
341 reviews
👕
Nike shirt 14
$1027
★ 4.3
240 reviews
👕
Adidas shirt 15
$159
★ 3.9
238 reviews
👕
Apple shirt 16
$857
★ 4.9
319 reviews
👕
Samsung shirt 17
$396
★ 4.9
296 reviews
👕
Sony shirt 18
$582
★ 3.9
85 reviews
👕
LG shirt 19
$295
★ 3.8
291 reviews
👕
Dell shirt 20
$493
★ 3.6
350 reviews
👕
HP shirt 21
$960
★ 4.8
303 reviews
👕
Nike shirt 22
$325
★ 3.5
284 reviews
👕
Adidas shirt 23
$1043
★ 4.1
123 reviews
👕
Apple shirt 24
$920
★ 3.7
373 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>