🪑
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
$381
★ 3.7
197 reviews
🪑
Sony furnitur 2
$739
★ 4.2
154 reviews
🪑
LG furnitur 3
$63
★ 4.4
438 reviews
🪑
Dell furnitur 4
$993
★ 4.9
119 reviews
🪑
HP furnitur 5
$63
★ 4.4
259 reviews
🪑
Nike furnitur 6
$539
★ 3.7
235 reviews
🪑
Adidas furnitur 7
$277
★ 4.4
374 reviews
🪑
Apple furnitur 8
$395
★ 4.1
137 reviews
🪑
Samsung furnitur 9
$398
★ 4.2
374 reviews
🪑
Sony furnitur 10
$65
★ 4.3
17 reviews
🪑
LG furnitur 11
$384
★ 3.6
448 reviews
🪑
Dell furnitur 12
$273
★ 4.5
132 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>