diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-18 15:31:20 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-18 15:31:20 +0800 |
commit | e8b03baf6b67a14c0db6dbf3a1abaa4a6a173213 (patch) | |
tree | 178df94bcf502ebc816c058634e2376ff8457895 /app/controllers | |
parent | 4fbe044b74aa6a24133732ef8a9bc5063ecef5dd (diff) | |
download | gitlab-ce-e8b03baf6b67a14c0db6dbf3a1abaa4a6a173213.tar.gz |
Use path rather than URL because it should work for http 302:
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_14035941
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/artifacts_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb index 8261a73c642..16ab7ec409d 100644 --- a/app/controllers/projects/artifacts_controller.rb +++ b/app/controllers/projects/artifacts_controller.rb @@ -35,10 +35,10 @@ class Projects::ArtifactsController < Projects::ApplicationController end def latest_succeeded - target_url = artifacts_action_url(params[:path], project, build) + target_path = artifacts_action_path(params[:path], project, build) if target_url - redirect_to(target_url) + redirect_to(target_path) else render_404 end |