Skip to content

Commit

Permalink
Fix URL construction
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Oct 5, 2023
1 parent ddf478f commit 0b9904f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventree/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def constructApiUrl(self, endpoint_url):
url = urljoin(self.api_url, endpoint_url)

# Ensure the API URL ends with a trailing slash
if not url.endswith('/'):
if not url.endswith('/') and '?' not in url:
url += '/'

return url
Expand Down

0 comments on commit 0b9904f

Please sign in to comment.