Redirect to archives.docs.gitlab.com when requesting an offline version
Visitors to docs.gitlab.com/$x
where $x
is not an online docs version (e.g, docs.gitlab.com/15.1
) currently encounter a 404, or they need to rely on the degraded docs experience in the in-product /help
section.
Once we have an archives site, we can redirect them to the archive site automatically.
This will improve Docs usage for self-hosted users who are running older version.
Implementation
- Needs to use JavaScript; we cannot redirect to external domains using Pages (gitlab-pages#601 (closed))
- Example redirect:
docs.gitlab.com/15.1/
=>archives.docs.gitlab.com/15.1/
See &8937 (comment 1133455362) for more context.