📱
Smartphones - Page 2
Showing page 2 of 5
Path: /marketplace/electronics/phones/2
3
Path Depth
245
Total Items
2
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["electronics", "phones", "2"]
Parsed as:
Category: "electronics", Subcategory: "phones", Page: "2"
📱
HP phone 13
$1038
★ 4.5
51 reviews
📱
Nike phone 14
$84
★ 4.6
333 reviews
📱
Adidas phone 15
$753
★ 4.5
368 reviews
📱
Apple phone 16
$75
★ 4.7
150 reviews
📱
Samsung phone 17
$917
★ 4.1
241 reviews
📱
Sony phone 18
$260
★ 4.6
490 reviews
📱
LG phone 19
$291
★ 4.8
221 reviews
📱
Dell phone 20
$190
★ 4.5
123 reviews
📱
HP phone 21
$272
★ 5.0
242 reviews
📱
Nike phone 22
$1049
★ 4.4
187 reviews
📱
Adidas phone 23
$118
★ 4.7
187 reviews
📱
Apple phone 24
$984
★ 4.9
25 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>