summaryrefslogtreecommitdiff
path: root/app/controllers/projects/artifacts_controller.rb
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-12 23:26:30 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-12 23:26:30 +0800
commit57c72cb0dfc980106163b313f850c5b8a5e31a70 (patch)
tree54e91f699d3a5ced7fb86b9f39484710263270d1 /app/controllers/projects/artifacts_controller.rb
parente383254070baf8a4701e3a10b7cc699f03cefff4 (diff)
downloadgitlab-ce-57c72cb0dfc980106163b313f850c5b8a5e31a70.tar.gz
Could be faster when params[:path] is missing
Diffstat (limited to 'app/controllers/projects/artifacts_controller.rb')
-rw-r--r--app/controllers/projects/artifacts_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb
index 25a1c2ca7e1..bf9d72ae90c 100644
--- a/app/controllers/projects/artifacts_controller.rb
+++ b/app/controllers/projects/artifacts_controller.rb
@@ -36,9 +36,9 @@ class Projects::ArtifactsController < Projects::ApplicationController
end
def search
- url = namespace_project_build_url(project.namespace, project, build)
-
if params[:path]
+ url = namespace_project_build_url(project.namespace, project, build)
+
redirect_to "#{url}/artifacts/#{params[:path]}"
else
render_404