🍳
Kitchen - Page 2
Showing page 2 of 5
Path: /marketplace/home/kitchen/2
3
Path Depth
223
Total Items
2
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["home", "kitchen", "2"]
Parsed as:
Category: "home", Subcategory: "kitchen", Page: "2"
🍳
HP kitche 13
$131
★ 4.1
188 reviews
🍳
Nike kitche 14
$465
★ 4.4
228 reviews
🍳
Adidas kitche 15
$770
★ 4.6
189 reviews
🍳
Apple kitche 16
$581
★ 4.3
500 reviews
🍳
Samsung kitche 17
$1041
★ 3.6
169 reviews
🍳
Sony kitche 18
$107
★ 4.9
439 reviews
🍳
LG kitche 19
$481
★ 3.7
138 reviews
🍳
Dell kitche 20
$730
★ 3.7
184 reviews
🍳
HP kitche 21
$805
★ 4.4
175 reviews
🍳
Nike kitche 22
$195
★ 4.4
143 reviews
🍳
Adidas kitche 23
$162
★ 3.7
119 reviews
🍳
Apple kitche 24
$566
★ 4.5
390 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>