Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/artifacts_controller.rb')
-rw-r--r--app/controllers/projects/artifacts_controller.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb
index 2828d17c36f..85bdeb07b00 100644
--- a/app/controllers/projects/artifacts_controller.rb
+++ b/app/controllers/projects/artifacts_controller.rb
@@ -62,7 +62,11 @@ class Projects::ArtifactsController < Projects::ApplicationController
conditionally_expand_blob(blob)
if blob.external_link?(build)
- redirect_to external_file_project_job_artifacts_path(@project, @build, path: params[:path])
+ if Gitlab::CurrentSettings.enable_artifact_external_redirect_warning_page
+ redirect_to external_file_project_job_artifacts_path(@project, @build, path: params[:path])
+ else
+ redirect_to blob.external_url(build)
+ end
else
respond_to do |format|
format.html do