Skip to content

Commit

Permalink
Keep existing trailing slash in URL when forwarding request to Insights
Browse files Browse the repository at this point in the history
  • Loading branch information
lfu authored and chris1984 committed Nov 25, 2024
1 parent 2506bd7 commit 278a2b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/foreman_rh_cloud/cloud_request_forwarder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def prepare_request_opts(original_request, forward_payload, forward_params, cert
}
),
}
base_params.merge(path_params(original_request.path, certs))
requested_url = original_request.original_fullpath.end_with?('/') ? original_request.path + '/' : original_request.path
base_params.merge(path_params(requested_url, certs))
end

def prepare_forward_payload(original_request, controller_name)
Expand Down

0 comments on commit 278a2b0

Please sign in to comment.