📱
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
$975
★ 4.7
307 reviews
📱
Nike phone 14
$298
★ 4.5
162 reviews
📱
Adidas phone 15
$178
★ 4.9
160 reviews
📱
Apple phone 16
$221
★ 3.9
10 reviews
📱
Samsung phone 17
$929
★ 4.8
369 reviews
📱
Sony phone 18
$558
★ 4.7
217 reviews
📱
LG phone 19
$631
★ 4.9
359 reviews
📱
Dell phone 20
$184
★ 4.1
38 reviews
📱
HP phone 21
$365
★ 4.1
87 reviews
📱
Nike phone 22
$854
★ 4.8
103 reviews
📱
Adidas phone 23
$226
★ 3.8
36 reviews
📱
Apple phone 24
$145
★ 3.6
144 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>