👟
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
$826
★ 4.6
209 reviews
👟
Nike shoe 14
$327
★ 3.5
45 reviews
👟
Adidas shoe 15
$834
★ 3.6
104 reviews
👟
Apple shoe 16
$936
★ 3.7
256 reviews
👟
Samsung shoe 17
$73
★ 4.2
76 reviews
👟
Sony shoe 18
$260
★ 4.9
36 reviews
👟
LG shoe 19
$432
★ 3.8
124 reviews
👟
Dell shoe 20
$474
★ 4.3
215 reviews
👟
HP shoe 21
$463
★ 3.6
53 reviews
👟
Nike shoe 22
$861
★ 3.6
31 reviews
👟
Adidas shoe 23
$958
★ 4.6
490 reviews
👟
Apple shoe 24
$523
★ 4.4
233 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>