Internal links
Link to other pages in your documentation using root-relative paths. Root-relative paths start from the root of your documentation directory and work consistently regardless of where the linking page is located.Anchor links
Anchor links allow you to link directly to specific sections within a page. Every header automatically generates an anchor link based on its text.Link to headers on the same page
Reference headers on the current page using the hash symbol:Link to headers on other pages
Combine page paths with anchor links.How anchor links are generated
Anchor links are automatically created from header text.- Convert to lowercase
- Replace spaces with hyphens
- Remove special characters
- Preserve numbers and letters
| Header text | Anchor link |
|---|---|
## Getting Started | #getting-started |
### API Authentication | #api-authentication |
#### Step 1: Install | #step-1-install |
Headers with the
noAnchor prop will not generate anchor links. See Format text for details.Link to API endpoints
When documenting APIs, you can link to specific endpoints from anywhere in your documentation. Link to API endpoint pages using their path in the navigation.Link to external pages
When you link to external resources, make it clear the link goes outside your documentation.Best practices
Write descriptive link text
Use clear, descriptive text that indicates what users will find when they click.Create topic clusters
Link related content together to help users discover relevant information.Use contextual links
Add links naturally within content where they provide value.Link to prerequisites
Help users prepare by linking to prerequisite content:Avoid circular links
Do not create links that send users back and forth between the same pages.Check for broken links
Use the Mintlify CLI to identify broken links in your documentation.Update links when reorganizing
When moving or renaming pages:- Update the page path in your navigation configuration.
- Configure redirects for the old path to the new path.
- Search your documentation for references to the old path.
- Update all internal links to use the new path.
- Run
mint broken-linksto verify all links work.
Use redirects for moved content
When permanently moving content, add redirects to prevent broken links.Related resources
- Format text: Learn about Markdown formatting.
- Navigation: Configure your documentation structure.
- Redirects: Set up redirects for moved content.