BigW Consortium Gitlab

Commit 73bbaffb by Lin Jen-Shin
parent abf1cfff
...@@ -35,10 +35,14 @@ class Projects::ArtifactsController < Projects::ApplicationController ...@@ -35,10 +35,14 @@ class Projects::ArtifactsController < Projects::ApplicationController
end end
def search def search
if params[:path] path = params[:path]
url = namespace_project_build_url(project.namespace, project, build)
redirect_to "#{url}/artifacts/#{params[:path]}" if %w[download browse file].include?(path)
redirect_to send(
"#{path}_namespace_project_build_artifacts_url",
project.namespace,
project,
build)
else else
render_404 render_404
end end
......
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