📖
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
$916
★ 4.4
210 reviews
📖
Nike fictio 38
$816
★ 4.0
382 reviews
📖
Adidas fictio 39
$388
★ 4.2
98 reviews
📖
Apple fictio 40
$87
★ 5.0
214 reviews
📖
Samsung fictio 41
$184
★ 5.0
146 reviews
📖
Sony fictio 42
$241
★ 3.9
148 reviews
📖
LG fictio 43
$616
★ 3.7
402 reviews
📖
Dell fictio 44
$425
★ 4.3
431 reviews
📖
HP fictio 45
$497
★ 3.8
440 reviews
📖
Nike fictio 46
$246
★ 3.6
358 reviews
📖
Adidas fictio 47
$929
★ 3.8
295 reviews
📖
Apple fictio 48
$677
★ 3.6
168 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>