Skip to content

Commit

Permalink
Read repository_name also when bulding the binary path
Browse files Browse the repository at this point in the history
  • Loading branch information
danidoni committed Oct 26, 2023
1 parent f19206e commit 039b780
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/app/controllers/webui/packages/main_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ def set_architecture
return @architecture if @architecture

flash[:error] = "Couldn't find architecture '#{params[:arch]}'."
redirect_to(project_package_repository_binaries_path(package_name: @package.name, project_name: @project.name, repository_name: params[:repository]))

repository_name = params[:repository] || params[:repository_name]
redirect_to(project_package_repository_binaries_path(package_name: @package.name,
project_name: @project.name,
repository_name: repository_name))
end
end
end
Expand Down

0 comments on commit 039b780

Please sign in to comment.