📖
Fiction - Page 5
Showing page 5 of 5
Path: /marketplace/books/fiction/5
3
Path Depth
567
Total Items
5
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "fiction", "5"]
Parsed as:
Category: "books", Subcategory: "fiction", Page: "5"
📖
Samsung fictio 49
$989
★ 4.2
500 reviews
📖
Sony fictio 50
$373
★ 4.3
29 reviews
📖
LG fictio 51
$766
★ 4.7
110 reviews
📖
Dell fictio 52
$353
★ 3.5
285 reviews
📖
HP fictio 53
$247
★ 4.2
508 reviews
📖
Nike fictio 54
$246
★ 3.6
362 reviews
📖
Adidas fictio 55
$980
★ 4.9
283 reviews
📖
Apple fictio 56
$562
★ 3.9
161 reviews
📖
Samsung fictio 57
$720
★ 4.6
421 reviews
📖
Sony fictio 58
$226
★ 3.8
461 reviews
📖
LG fictio 59
$615
★ 4.8
500 reviews
📖
Dell fictio 60
$1020
★ 4.1
60 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>