docs: add routing page (#9550)
- Add a new homepage to `book` project for the routing page - Move all main doc pages to be under `/v2/learn` (and added redirects + fixed links across docs) - Other: add admin components to resources dropdown + fixes to search on mobile. Closes DX-955 Preview: https://docs-v2-git-docs-router-page-medusajs.vercel.app/v2
This commit is contained in:
+2
-2
@@ -41,7 +41,7 @@ fetch(`http://localhost:9000/store/products/${id}?${queryParams.toString()}`, {
|
||||
})
|
||||
```
|
||||
|
||||
You pass the selected region's ID and the code of its first country as query parameters to the [Get Product API route](https://docs.medusajs.com/v2/api/store#products_getproductsid).
|
||||
You pass the selected region's ID and the code of its first country as query parameters to the [Get Product API route](!api!/store#products_getproductsid).
|
||||
|
||||
<Note title="Tip">
|
||||
|
||||
@@ -248,6 +248,6 @@ export default function Product({ params: { id } }: Params) {
|
||||
|
||||
In this example, you:
|
||||
|
||||
- Pass the selected region's ID and the code of its first country as query parameters to the [Get Product API route](https://docs.medusajs.com/v2/api/store#products_getproductsid).
|
||||
- Pass the selected region's ID and the code of its first country as query parameters to the [Get Product API route](!api!/store#products_getproductsid).
|
||||
- You can instead allow the customer to choose their country.
|
||||
- Display the selected variant's price by formatting its price's `calculated_amount_with_tax` property.
|
||||
|
||||
Reference in New Issue
Block a user