Skip to content

Commit

Permalink
fix: fix query params for redirect url (#276)
Browse files Browse the repository at this point in the history
* fix: fix query params for redirect url
  • Loading branch information
aht007 authored Oct 1, 2024
1 parent 436b971 commit dadccbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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 @@ -102,8 +102,8 @@ def _add_query_params_to_redirect_url(url, params):
url (str): A URL asa Python String
"""

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

return url
Expand Down

0 comments on commit dadccbd

Please sign in to comment.