📖
Fiction - Page 1
Showing page 1 of 5
Path: /marketplace/books/fiction/1
3
Path Depth
567
Total Items
1
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "fiction", "1"]
Parsed as:
Category: "books", Subcategory: "fiction", Page: "1"
📖
Samsung fictio 1
$514
★ 4.0
196 reviews
📖
Sony fictio 2
$769
★ 4.2
211 reviews
📖
LG fictio 3
$226
★ 4.9
170 reviews
📖
Dell fictio 4
$428
★ 4.6
169 reviews
📖
HP fictio 5
$1011
★ 3.8
121 reviews
📖
Nike fictio 6
$344
★ 3.6
80 reviews
📖
Adidas fictio 7
$484
★ 3.8
225 reviews
📖
Apple fictio 8
$624
★ 4.0
275 reviews
📖
Samsung fictio 9
$621
★ 4.4
277 reviews
📖
Sony fictio 10
$217
★ 4.7
49 reviews
📖
LG fictio 11
$277
★ 4.9
73 reviews
📖
Dell fictio 12
$481
★ 4.2
211 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>