👟
Shoes - Page 4
Showing page 4 of 5
Path: /marketplace/clothing/shoes/4
3
Path Depth
445
Total Items
4
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["clothing", "shoes", "4"]
Parsed as:
Category: "clothing", Subcategory: "shoes", Page: "4"
👟
HP shoe 37
$247
★ 4.7
251 reviews
👟
Nike shoe 38
$387
★ 4.8
333 reviews
👟
Adidas shoe 39
$574
★ 4.4
283 reviews
👟
Apple shoe 40
$913
★ 4.0
181 reviews
👟
Samsung shoe 41
$874
★ 4.1
248 reviews
👟
Sony shoe 42
$824
★ 3.8
23 reviews
👟
LG shoe 43
$503
★ 3.5
194 reviews
👟
Dell shoe 44
$558
★ 5.0
86 reviews
👟
HP shoe 45
$958
★ 3.8
60 reviews
👟
Nike shoe 46
$168
★ 4.8
165 reviews
👟
Adidas shoe 47
$573
★ 3.9
333 reviews
👟
Apple shoe 48
$699
★ 4.4
25 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>