Configure page-level and directory-level redirects in content files and .config.yml.
Redirects
redirect can be set in .config.yml (directory-level) or in Markdown frontmatter (page-level).
Directory redirect
Commonly used to redirect a collection's root path to a specific doc:
# content/en-US/.config.yml
navigation:
hidden: true
redirect: /introductionVisiting /en-US automatically jumps to /en-US/introduction.
Page redirect
---
redirect: /en-US/guide/routing
---How redirect targets resolve
- Absolute protocol links (e.g.
https://...,mailto:...) are kept as-is. - Paths starting with
/are resolved from the current collection base. For example, writingredirect: /introductionin a collection whose base is/en-USresolves to/en-US/introduction. - Paths without a leading
/are resolved relative to the current directory. For example, incontent/en-US/guide/.config.yml, writingredirect: testresolves to/en-US/guide/test. - If the target already includes the base prefix, it isn't added twice.
The framework collects redirect rules across the whole workspace at build time. If the same source path has conflicting targets, it throws an error so you catch the misconfiguration early.