📚
Textbooks - Page 2
Showing page 2 of 5
Path: /marketplace/books/textbooks/2
3
Path Depth
234
Total Items
2
Current Page
12
Items Shown
Nested Marketplace Route
File:
/marketplace/[...path].astro
Handles:
/marketplace/category/subcategory/page
Current path:
["books", "textbooks", "2"]
Parsed as:
Category: "books", Subcategory: "textbooks", Page: "2"
📚
HP textbook 13
$784
★ 4.8
387 reviews
📚
Nike textbook 14
$667
★ 3.8
301 reviews
📚
Adidas textbook 15
$734
★ 4.5
86 reviews
📚
Apple textbook 16
$58
★ 3.7
395 reviews
📚
Samsung textbook 17
$705
★ 4.3
251 reviews
📚
Sony textbook 18
$94
★ 3.6
16 reviews
📚
LG textbook 19
$711
★ 4.6
153 reviews
📚
Dell textbook 20
$311
★ 4.4
82 reviews
📚
HP textbook 21
$910
★ 3.5
209 reviews
📚
Nike textbook 22
$52
★ 4.5
228 reviews
📚
Adidas textbook 23
$109
★ 4.1
423 reviews
📚
Apple textbook 24
$872
★ 4.9
394 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>