Skip to content

Commit

Permalink
Merge pull request #14825 from krauselukas/fix/typo_in_redirection
Browse files Browse the repository at this point in the history
Fix typo in redirect in the webui routes
  • Loading branch information
krauselukas committed Aug 22, 2023
2 parents 279344a + 03faaa9 commit 31116c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/config/routes/webui_routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@
get 'package/branch_diff_info/:project/:package' => :branch_diff_info, as: 'package_branch_diff_info', constraints: cons
get 'package/dependency/:project/:package' => :dependency, constraints: cons, as: 'package_dependency'
# For backward compatibility
get 'package/binary/:project/:package/:repository/:arch/:filename', to: redirect('/projects/%{project}/packages/%{package}/repositories/%{repostitory}/%{arch}/%{filename}'),
get 'package/binary/:project/:package/:repository/:arch/:filename', to: redirect('/projects/%{project}/packages/%{package}/repositories/%{repository}/%{arch}/%{filename}'),
constraints: cons
# For backward compatibility
get 'package/binaries/:project/:package/:repository', to: redirect('/projects/%{project}/packages/%{package}/repositories/%{repostitory}'), constraints: cons
get 'package/binaries/:project/:package/:repository', to: redirect('/projects/%{project}/packages/%{package}/repositories/%{repository}'), constraints: cons
get 'package/users/:project/:package' => :users, as: 'package_users', constraints: cons
get 'package/requests/:project/:package' => :requests, as: 'package_requests', constraints: cons
get 'package/statistics/:project/:package/:repository/:arch' => :statistics, as: 'package_statistics', constraints: cons
Expand Down

0 comments on commit 31116c2

Please sign in to comment.