📱
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
$144
★ 4.1
58 reviews
📱
Nike phone 14
$634
★ 4.8
379 reviews
📱
Adidas phone 15
$509
★ 3.8
57 reviews
📱
Apple phone 16
$329
★ 3.9
393 reviews
📱
Samsung phone 17
$770
★ 4.8
466 reviews
📱
Sony phone 18
$62
★ 5.0
44 reviews
📱
LG phone 19
$84
★ 3.9
341 reviews
📱
Dell phone 20
$203
★ 4.2
441 reviews
📱
HP phone 21
$650
★ 4.8
328 reviews
📱
Nike phone 22
$295
★ 4.0
154 reviews
📱
Adidas phone 23
$230
★ 4.2
305 reviews
📱
Apple phone 24
$438
★ 4.8
302 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>