📖
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
$594
★ 4.9
269 reviews
📖
Nike fictio 14
$857
★ 4.4
171 reviews
📖
Adidas fictio 15
$693
★ 3.9
500 reviews
📖
Apple fictio 16
$75
★ 4.3
330 reviews
📖
Samsung fictio 17
$759
★ 3.9
371 reviews
📖
Sony fictio 18
$456
★ 4.3
207 reviews
📖
LG fictio 19
$126
★ 4.3
416 reviews
📖
Dell fictio 20
$740
★ 4.0
62 reviews
📖
HP fictio 21
$815
★ 4.5
82 reviews
📖
Nike fictio 22
$469
★ 4.3
408 reviews
📖
Adidas fictio 23
$428
★ 4.9
307 reviews
📖
Apple fictio 24
$342
★ 3.5
41 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>