🍳
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
$543
★ 5.0
94 reviews
🍳
Nike kitche 14
$135
★ 4.4
242 reviews
🍳
Adidas kitche 15
$838
★ 3.7
371 reviews
🍳
Apple kitche 16
$50
★ 4.8
306 reviews
🍳
Samsung kitche 17
$457
★ 4.0
388 reviews
🍳
Sony kitche 18
$156
★ 4.8
127 reviews
🍳
LG kitche 19
$388
★ 4.4
213 reviews
🍳
Dell kitche 20
$268
★ 4.9
460 reviews
🍳
HP kitche 21
$231
★ 4.9
341 reviews
🍳
Nike kitche 22
$397
★ 3.7
430 reviews
🍳
Adidas kitche 23
$164
★ 4.0
11 reviews
🍳
Apple kitche 24
$667
★ 3.8
143 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>