👟
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
$1033
★ 5.0
481 reviews
👟
Nike shoe 38
$416
★ 4.5
428 reviews
👟
Adidas shoe 39
$248
★ 4.8
420 reviews
👟
Apple shoe 40
$875
★ 4.6
26 reviews
👟
Samsung shoe 41
$201
★ 4.6
251 reviews
👟
Sony shoe 42
$1042
★ 4.1
78 reviews
👟
LG shoe 43
$61
★ 3.7
250 reviews
👟
Dell shoe 44
$494
★ 3.8
335 reviews
👟
HP shoe 45
$245
★ 4.0
244 reviews
👟
Nike shoe 46
$544
★ 4.5
70 reviews
👟
Adidas shoe 47
$1004
★ 4.5
80 reviews
👟
Apple shoe 48
$510
★ 4.9
334 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>