Artifact files are previewed in GitLab Pages although it's disabled in the project settings
Summary
Artifact files are previewed in GitLab Pages although it's disabled in the project settings (and enabled instance wide).
Steps to reproduce
- Enable GitLab pages for the instance.
- Create a new project and disable GitLab pages in settings.
- Save an html file as artifact, browse it and try to download the file by clicking on it.
Example Project
What is the current bug behavior?
When clicking on the file, it opens in a new window and redirects to GitLab Pages.
What is the expected correct behavior?
Since GitLab Pages is disabled in project settings, clicking on the file should download it instead of opening it.
Relevant logs and/or screenshots
Output of checks
Documentation says:
If GitLab Pages is enabled in the project, you can preview HTML files in the artifacts directly in your browser. If the project is internal or private, you must enable GitLab Pages access control to preview HTML files.
But it seems that it's an instance wide setting artifacts_server
with true/false
possible values.