👟
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
$861
★ 3.5
365 reviews
👟
Nike shoe 38
$606
★ 3.7
165 reviews
👟
Adidas shoe 39
$1005
★ 5.0
385 reviews
👟
Apple shoe 40
$351
★ 4.8
328 reviews
👟
Samsung shoe 41
$969
★ 3.7
507 reviews
👟
Sony shoe 42
$784
★ 4.3
403 reviews
👟
LG shoe 43
$640
★ 3.9
274 reviews
👟
Dell shoe 44
$780
★ 4.0
163 reviews
👟
HP shoe 45
$200
★ 4.0
456 reviews
👟
Nike shoe 46
$984
★ 4.3
372 reviews
👟
Adidas shoe 47
$762
★ 4.9
502 reviews
👟
Apple shoe 48
$144
★ 4.8
429 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>