Skip to content

Commit

Permalink
fix: fix query params for redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
aht007 committed Oct 1, 2024
1 parent 436b971 commit a408b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commerce_coordinator/apps/lms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _redirect_response_payment(self, request):
response (django.http.HttpResponseRedirect):
"""

get_items = list(self.request.GET.items())
get_items = list(self.request.GET.lists())
redirect_url = None
if "bundle" in dict(get_items):
ecom_url = urljoin(
Expand Down Expand Up @@ -103,7 +103,7 @@ def _add_query_params_to_redirect_url(url, params):
"""

query_params = list(params)
query_params = urlencode(query_params, True)
query_params = urlencode(query_params, doseq=True)
url = url + '?' + query_params if query_params else url

return url
Expand Down

0 comments on commit a408b53

Please sign in to comment.