📖
Fiction - Page 5
Showing page 5 of 5
Path: /marketplace/books/fiction/5
3
Path Depth
567
Total Items
5
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "fiction", "5"]
Parsed as:
Category: "books", Subcategory: "fiction", Page: "5"
📖
Samsung fictio 49
$211
★ 4.5
410 reviews
📖
Sony fictio 50
$532
★ 4.0
504 reviews
📖
LG fictio 51
$996
★ 4.5
444 reviews
📖
Dell fictio 52
$213
★ 3.8
365 reviews
📖
HP fictio 53
$646
★ 3.9
301 reviews
📖
Nike fictio 54
$139
★ 4.0
189 reviews
📖
Adidas fictio 55
$493
★ 4.6
134 reviews
📖
Apple fictio 56
$212
★ 4.5
332 reviews
📖
Samsung fictio 57
$334
★ 3.6
94 reviews
📖
Sony fictio 58
$949
★ 4.0
292 reviews
📖
LG fictio 59
$1009
★ 3.7
362 reviews
📖
Dell fictio 60
$948
★ 4.0
362 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>