📖
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
$486
★ 4.3
230 reviews
📖
Nike fictio 14
$260
★ 4.0
325 reviews
📖
Adidas fictio 15
$305
★ 4.9
224 reviews
📖
Apple fictio 16
$907
★ 4.5
408 reviews
📖
Samsung fictio 17
$976
★ 4.7
309 reviews
📖
Sony fictio 18
$624
★ 3.9
364 reviews
📖
LG fictio 19
$101
★ 4.8
153 reviews
📖
Dell fictio 20
$578
★ 3.6
341 reviews
📖
HP fictio 21
$596
★ 4.2
285 reviews
📖
Nike fictio 22
$346
★ 4.2
395 reviews
📖
Adidas fictio 23
$691
★ 4.5
413 reviews
📖
Apple fictio 24
$724
★ 3.7
473 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>