👟
Shoes - Page 2
Showing page 2 of 5
Path: /marketplace/clothing/shoes/2
3
Path Depth
445
Total Items
2
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["clothing", "shoes", "2"]
Parsed as:
Category: "clothing", Subcategory: "shoes", Page: "2"
👟
HP shoe 13
$478
★ 4.5
84 reviews
👟
Nike shoe 14
$949
★ 3.5
242 reviews
👟
Adidas shoe 15
$102
★ 3.9
220 reviews
👟
Apple shoe 16
$203
★ 3.9
24 reviews
👟
Samsung shoe 17
$849
★ 3.7
237 reviews
👟
Sony shoe 18
$390
★ 4.0
284 reviews
👟
LG shoe 19
$347
★ 3.9
309 reviews
👟
Dell shoe 20
$964
★ 4.5
486 reviews
👟
HP shoe 21
$821
★ 4.2
254 reviews
👟
Nike shoe 22
$102
★ 4.6
175 reviews
👟
Adidas shoe 23
$1006
★ 3.9
346 reviews
👟
Apple shoe 24
$504
★ 4.9
127 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>