🍳
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
$522
★ 4.3
143 reviews
🍳
Sony kitche 2
$349
★ 4.9
253 reviews
🍳
LG kitche 3
$413
★ 3.8
386 reviews
🍳
Dell kitche 4
$1025
★ 4.9
120 reviews
🍳
HP kitche 5
$383
★ 4.5
149 reviews
🍳
Nike kitche 6
$323
★ 4.5
76 reviews
🍳
Adidas kitche 7
$743
★ 4.4
339 reviews
🍳
Apple kitche 8
$273
★ 4.3
34 reviews
🍳
Samsung kitche 9
$140
★ 4.3
509 reviews
🍳
Sony kitche 10
$78
★ 3.8
375 reviews
🍳
LG kitche 11
$88
★ 4.5
245 reviews
🍳
Dell kitche 12
$358
★ 3.8
477 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>