1 # Documentation Link Conventions
2
3 Use these rules whenever linking to Medusa documentation in a comment, regardless of issue category.
4
5 ## Base Rule
6
7 The URL path starts from the `app/` directory inside each doc project. Remove `page.mdx` or `page.tsx` from the end.
8
9 ```
10 www/apps/<project>/app/<path>/page.mdx → <prefix>/<path>
11 ```
12
13 ## Prefix by Project
14
15 | Project directory | URL prefix | Example |
16 | --- | --- | --- |
17 | `www/apps/book` | *(none)* | `www/apps/book/app/learn/page.mdx` → `/learn` |
18 | `www/apps/resources` | `/resources` | `www/apps/resources/app/commerce-modules/page.mdx` → `/resources/commerce-modules` |
19 | `www/apps/cloud` | `/cloud` | `www/apps/cloud/app/user/page.mdx` → `/cloud/user` |
20 | `www/apps/ui` | `/ui` | `www/apps/ui/app/colors/overview/page.mdx` → `/ui/colors/overview` |
21 | `www/apps/user-guide` | `/user-guide` | `www/apps/user-guide/app/customers/page.mdx` → `/user-guide/customers` |
22
23 ## API Reference
24
25 The API reference has only two pages: `/api/store` and `/api/admin`.
26
27 **Linking to a tag** (group of routes) — append `#<tag-kebab-case>`:
28
29 ```
30 /api/admin#products
31 /api/store#carts
32 ```
33
34 **Linking to a specific operation** — format: `#{tag}_{method}{path-without-slashes}`:
35
36 ```
37 /api/admin#products_getproducts (GET /admin/products)
38 /api/admin#products_getproductsid (GET /admin/products/:id)
39 /api/store#carts_postcarts (POST /store/carts)
40 ```
41
42 ## Full URL
43
44 Prepend `https://docs.medusajs.com` to all paths:
45
46 ```
47 https://docs.medusajs.com/learn
48 https://docs.medusajs.com/resources/commerce-modules
49 https://docs.medusajs.com/api/admin#products_getproducts
50 ```