👟
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
$797
★ 4.0
51 reviews
👟
Nike shoe 14
$232
★ 3.9
452 reviews
👟
Adidas shoe 15
$522
★ 4.3
304 reviews
👟
Apple shoe 16
$369
★ 4.3
374 reviews
👟
Samsung shoe 17
$147
★ 4.7
326 reviews
👟
Sony shoe 18
$1041
★ 4.9
68 reviews
👟
LG shoe 19
$877
★ 4.6
136 reviews
👟
Dell shoe 20
$953
★ 3.8
309 reviews
👟
HP shoe 21
$909
★ 3.5
168 reviews
👟
Nike shoe 22
$325
★ 3.6
98 reviews
👟
Adidas shoe 23
$53
★ 4.1
47 reviews
👟
Apple shoe 24
$229
★ 4.4
277 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>