Commit 57c72cb0 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Could be faster when params[:path] is missing

parent e3832540
...@@ -36,9 +36,9 @@ class Projects::ArtifactsController < Projects::ApplicationController ...@@ -36,9 +36,9 @@ class Projects::ArtifactsController < Projects::ApplicationController
end end
def search def search
url = namespace_project_build_url(project.namespace, project, build)
if params[:path] if params[:path]
url = namespace_project_build_url(project.namespace, project, build)
redirect_to "#{url}/artifacts/#{params[:path]}" redirect_to "#{url}/artifacts/#{params[:path]}"
else else
render_404 render_404
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment