👟
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
$466
★ 4.4
305 reviews
👟
Nike shoe 38
$729
★ 4.9
297 reviews
👟
Adidas shoe 39
$249
★ 4.7
75 reviews
👟
Apple shoe 40
$357
★ 4.5
450 reviews
👟
Samsung shoe 41
$703
★ 4.8
361 reviews
👟
Sony shoe 42
$77
★ 4.3
25 reviews
👟
LG shoe 43
$536
★ 4.8
111 reviews
👟
Dell shoe 44
$933
★ 4.5
220 reviews
👟
HP shoe 45
$273
★ 4.4
375 reviews
👟
Nike shoe 46
$104
★ 3.9
265 reviews
👟
Adidas shoe 47
$60
★ 4.0
394 reviews
👟
Apple shoe 48
$351
★ 4.8
336 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>