👟
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
$228
★ 4.7
145 reviews
👟
Nike shoe 14
$689
★ 4.1
390 reviews
👟
Adidas shoe 15
$85
★ 3.7
319 reviews
👟
Apple shoe 16
$957
★ 3.8
470 reviews
👟
Samsung shoe 17
$909
★ 4.7
245 reviews
👟
Sony shoe 18
$1032
★ 3.9
93 reviews
👟
LG shoe 19
$86
★ 3.9
230 reviews
👟
Dell shoe 20
$936
★ 4.2
497 reviews
👟
HP shoe 21
$420
★ 3.9
216 reviews
👟
Nike shoe 22
$690
★ 4.4
24 reviews
👟
Adidas shoe 23
$619
★ 4.7
92 reviews
👟
Apple shoe 24
$117
★ 3.9
359 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>