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
end
def search
if params[:path]
url = namespace_project_build_url(project.namespace, project, build)
if params[:path]
redirect_to "#{url}/artifacts/#{params[:path]}"
else
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