👟
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
$116
★ 4.8
490 reviews
👟
Nike shoe 14
$519
★ 4.5
375 reviews
👟
Adidas shoe 15
$239
★ 4.7
393 reviews
👟
Apple shoe 16
$299
★ 4.7
499 reviews
👟
Samsung shoe 17
$690
★ 4.4
91 reviews
👟
Sony shoe 18
$670
★ 4.8
383 reviews
👟
LG shoe 19
$465
★ 4.1
280 reviews
👟
Dell shoe 20
$1022
★ 4.3
478 reviews
👟
HP shoe 21
$139
★ 4.4
366 reviews
👟
Nike shoe 22
$331
★ 4.9
264 reviews
👟
Adidas shoe 23
$1025
★ 3.5
71 reviews
👟
Apple shoe 24
$189
★ 3.8
247 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>