From 039b7802f96ae62636662b6ed5abb95cd7f33dc4 Mon Sep 17 00:00:00 2001 From: Dani Donisa Date: Thu, 26 Oct 2023 13:28:51 +0200 Subject: [PATCH] Read repository_name also when bulding the binary path --- src/api/app/controllers/webui/packages/main_controller.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api/app/controllers/webui/packages/main_controller.rb b/src/api/app/controllers/webui/packages/main_controller.rb index 867386d88d42..5ff2cdc3fb5f 100644 --- a/src/api/app/controllers/webui/packages/main_controller.rb +++ b/src/api/app/controllers/webui/packages/main_controller.rb @@ -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