📖
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
$371
★ 4.0
409 reviews
📖
Nike fictio 14
$478
★ 4.7
120 reviews
📖
Adidas fictio 15
$979
★ 3.7
472 reviews
📖
Apple fictio 16
$321
★ 4.5
430 reviews
📖
Samsung fictio 17
$251
★ 3.7
493 reviews
📖
Sony fictio 18
$158
★ 3.8
474 reviews
📖
LG fictio 19
$1044
★ 4.4
209 reviews
📖
Dell fictio 20
$77
★ 3.8
444 reviews
📖
HP fictio 21
$435
★ 3.7
278 reviews
📖
Nike fictio 22
$129
★ 4.2
308 reviews
📖
Adidas fictio 23
$280
★ 4.1
453 reviews
📖
Apple fictio 24
$781
★ 3.9
328 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>