📱
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
$842
★ 4.2
364 reviews
📱
Nike phone 38
$730
★ 3.9
488 reviews
📱
Adidas phone 39
$67
★ 3.6
175 reviews
📱
Apple phone 40
$991
★ 4.6
205 reviews
📱
Samsung phone 41
$301
★ 4.4
400 reviews
📱
Sony phone 42
$688
★ 3.6
442 reviews
📱
LG phone 43
$136
★ 3.7
471 reviews
📱
Dell phone 44
$309
★ 4.1
128 reviews
📱
HP phone 45
$579
★ 3.8
62 reviews
📱
Nike phone 46
$63
★ 3.8
10 reviews
📱
Adidas phone 47
$407
★ 3.7
116 reviews
📱
Apple phone 48
$388
★ 4.1
311 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>