📖
Fiction - Page 4
Showing page 4 of 5
Path: /marketplace/books/fiction/4
3
Path Depth
567
Total Items
4
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "fiction", "4"]
Parsed as:
Category: "books", Subcategory: "fiction", Page: "4"
📖
HP fictio 37
$430
★ 4.8
275 reviews
📖
Nike fictio 38
$278
★ 4.6
288 reviews
📖
Adidas fictio 39
$1035
★ 4.2
190 reviews
📖
Apple fictio 40
$934
★ 4.4
146 reviews
📖
Samsung fictio 41
$149
★ 3.7
128 reviews
📖
Sony fictio 42
$288
★ 3.5
464 reviews
📖
LG fictio 43
$937
★ 4.6
226 reviews
📖
Dell fictio 44
$298
★ 3.6
156 reviews
📖
HP fictio 45
$492
★ 3.6
413 reviews
📖
Nike fictio 46
$973
★ 4.4
124 reviews
📖
Adidas fictio 47
$691
★ 4.4
422 reviews
📖
Apple fictio 48
$74
★ 4.8
112 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>