📖
Fiction - Page 2
Showing page 2 of 5
Path: /marketplace/books/fiction/2
3
Path Depth
567
Total Items
2
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "fiction", "2"]
Parsed as:
Category: "books", Subcategory: "fiction", Page: "2"
📖
HP fictio 13
$191
★ 4.6
19 reviews
📖
Nike fictio 14
$666
★ 4.3
342 reviews
📖
Adidas fictio 15
$790
★ 4.9
91 reviews
📖
Apple fictio 16
$782
★ 4.6
384 reviews
📖
Samsung fictio 17
$56
★ 3.8
444 reviews
📖
Sony fictio 18
$560
★ 3.5
498 reviews
📖
LG fictio 19
$742
★ 3.6
475 reviews
📖
Dell fictio 20
$257
★ 3.7
155 reviews
📖
HP fictio 21
$228
★ 3.5
156 reviews
📖
Nike fictio 22
$924
★ 4.9
506 reviews
📖
Adidas fictio 23
$847
★ 4.6
10 reviews
📖
Apple fictio 24
$848
★ 4.8
162 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>