browsing text-artifacts redirects "away from gitlab"

consider a job that creates some files (binary ones as well as text-based ones) and makes them available via artifacts:

makeartifacts:
  image:
    alpine
  script:
    - echo "hello world" | tee hello.txt
    - cp -v /bin/busybox .
  artifacts:
    untracked: true

After the job completes, I can download the artifact as a zip-package, but I can also browse the content and get the individual files. this is a great feature.

however, for some unknown reason, whenever I try to open a "text artifact", i get a big fat warning that "You are being redirected away from GitLab"

You are being redirected away from GitLab

and the actual file is being served via gitlab-pages.

e.g. https://gitlab.com/umlaeute/testing/-/jobs/6061683445/artifacts/external_file/hello.txt

this is not true for binary artifacts (which are served directly from the instance)

e.g. https://gitlab.com/umlaeute/testing/-/jobs/6061683445/artifacts/file/busybox

this is both with self-hosted Gitlab-CE and with gitlab.org

Edited by umlaeute