👟
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
$140
★ 4.3
79 reviews
👟
Nike shoe 38
$352
★ 4.5
31 reviews
👟
Adidas shoe 39
$871
★ 4.9
493 reviews
👟
Apple shoe 40
$157
★ 3.8
505 reviews
👟
Samsung shoe 41
$470
★ 4.1
101 reviews
👟
Sony shoe 42
$982
★ 3.8
114 reviews
👟
LG shoe 43
$909
★ 4.1
46 reviews
👟
Dell shoe 44
$599
★ 4.6
475 reviews
👟
HP shoe 45
$570
★ 4.1
18 reviews
👟
Nike shoe 46
$207
★ 4.9
470 reviews
👟
Adidas shoe 47
$615
★ 3.8
295 reviews
👟
Apple shoe 48
$705
★ 5.0
421 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>