📱
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
$539
★ 4.5
469 reviews
📱
Nike phone 14
$872
★ 3.9
469 reviews
📱
Adidas phone 15
$328
★ 4.3
56 reviews
📱
Apple phone 16
$867
★ 4.0
478 reviews
📱
Samsung phone 17
$363
★ 4.1
238 reviews
📱
Sony phone 18
$444
★ 4.6
61 reviews
📱
LG phone 19
$863
★ 4.3
17 reviews
📱
Dell phone 20
$400
★ 3.7
222 reviews
📱
HP phone 21
$883
★ 4.6
288 reviews
📱
Nike phone 22
$765
★ 4.0
168 reviews
📱
Adidas phone 23
$713
★ 3.9
212 reviews
📱
Apple phone 24
$639
★ 4.1
248 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>