Skip to content
Snippets Groups Projects
Commit 57c72cb0 authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Could be faster when params[:path] is missing

parent e3832540
No related branches found
No related tags found
1 merge request!5142Add a download buttons for Build Artifacts
Pipeline #
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment