🍳
Kitchen - Page 1
Showing page 1 of 5
Path: /marketplace/home/kitchen/1
3
Path Depth
223
Total Items
1
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["home", "kitchen", "1"]
Parsed as:
Category: "home", Subcategory: "kitchen", Page: "1"
🍳
Samsung kitche 1
$533
★ 3.6
471 reviews
🍳
Sony kitche 2
$798
★ 3.8
459 reviews
🍳
LG kitche 3
$852
★ 4.3
188 reviews
🍳
Dell kitche 4
$680
★ 3.8
206 reviews
🍳
HP kitche 5
$265
★ 4.8
485 reviews
🍳
Nike kitche 6
$741
★ 3.8
89 reviews
🍳
Adidas kitche 7
$671
★ 4.3
79 reviews
🍳
Apple kitche 8
$880
★ 4.8
218 reviews
🍳
Samsung kitche 9
$825
★ 3.9
122 reviews
🍳
Sony kitche 10
$404
★ 3.6
115 reviews
🍳
LG kitche 11
$728
★ 4.4
355 reviews
🍳
Dell kitche 12
$170
★ 3.9
359 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>