🪑
Furniture - Page 1
Showing page 1 of 5
Path: /marketplace/home/furniture/1
3
Path Depth
345
Total Items
1
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["home", "furniture", "1"]
Parsed as:
Category: "home", Subcategory: "furniture", Page: "1"
🪑
Samsung furnitur 1
$110
★ 4.4
190 reviews
🪑
Sony furnitur 2
$645
★ 4.8
169 reviews
🪑
LG furnitur 3
$541
★ 4.6
85 reviews
🪑
Dell furnitur 4
$751
★ 4.9
360 reviews
🪑
HP furnitur 5
$660
★ 5.0
30 reviews
🪑
Nike furnitur 6
$684
★ 4.8
303 reviews
🪑
Adidas furnitur 7
$622
★ 4.9
348 reviews
🪑
Apple furnitur 8
$776
★ 3.6
356 reviews
🪑
Samsung furnitur 9
$879
★ 4.5
90 reviews
🪑
Sony furnitur 10
$140
★ 4.2
47 reviews
🪑
LG furnitur 11
$993
★ 4.9
27 reviews
🪑
Dell furnitur 12
$992
★ 4.1
330 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>