Pages redirects do not work
It has come to our attention that the Docs site's Pages redirects don't work. Those are defined in https://gitlab.com/gitlab-org/gitlab-docs/-/blob/master/content/_redirects.
To debug what's wrong with it, you can visit the file served by Pages https://docs.gitlab.com/_redirects. Seems none of our redirects work, and there are two errors repeating:
error: params not supported
error: no domain-level redirects to outside sites
So, I'm thinking that maybe the _redirects
file doesn't work well with the comments we have in each line. As for the second error, it seems that redirects don't currently support external sites, and we have a bunch of redirects pointing to https://design.gitlab.com.
Finally, redirects for files that are also using the old redirect_to
method in the metadata, will not work:
Files take priority over redirects. If a file exists on disk, GitLab Pages serves the file instead of your redirect. For example, if the files hello.html and world.html exist, and the _redirects file contains the following line, the redirect is ignored because hello.html exists.
All in all, it seems we have 3 issues:
-
The comments in the redirects -
Redirects pointing to external sites -
Redirects for pages that also exist on disk