📱
Smartphones - Page 4
Showing page 4 of 5
Path: /marketplace/electronics/phones/4
3
Path Depth
245
Total Items
4
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["electronics", "phones", "4"]
Parsed as:
Category: "electronics", Subcategory: "phones", Page: "4"
📱
HP phone 37
$222
★ 3.6
390 reviews
📱
Nike phone 38
$586
★ 3.7
374 reviews
📱
Adidas phone 39
$122
★ 4.3
371 reviews
📱
Apple phone 40
$354
★ 4.0
380 reviews
📱
Samsung phone 41
$986
★ 3.7
135 reviews
📱
Sony phone 42
$116
★ 4.1
381 reviews
📱
LG phone 43
$877
★ 4.3
470 reviews
📱
Dell phone 44
$715
★ 4.3
333 reviews
📱
HP phone 45
$85
★ 4.1
449 reviews
📱
Nike phone 46
$311
★ 5.0
475 reviews
📱
Adidas phone 47
$984
★ 4.7
405 reviews
📱
Apple phone 48
$871
★ 3.9
265 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>