📖
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
$903
★ 3.6
49 reviews
📖
Sony fictio 2
$772
★ 4.9
139 reviews
📖
LG fictio 3
$153
★ 3.7
279 reviews
📖
Dell fictio 4
$214
★ 3.9
335 reviews
📖
HP fictio 5
$209
★ 4.2
118 reviews
📖
Nike fictio 6
$306
★ 4.5
383 reviews
📖
Adidas fictio 7
$826
★ 4.0
369 reviews
📖
Apple fictio 8
$297
★ 4.9
266 reviews
📖
Samsung fictio 9
$317
★ 4.7
104 reviews
📖
Sony fictio 10
$91
★ 4.6
222 reviews
📖
LG fictio 11
$602
★ 4.1
314 reviews
📖
Dell fictio 12
$515
★ 3.8
145 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>