Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Fix bug in the URL scheme rewrite (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Apr 8, 2022
1 parent 6bcf2ee commit b25879b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/catalog/api/serializers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def get_url(self, *args, **kwargs):

# Only rewrite URLs if a fixed scheme is provided
if self.scheme is not None:
re.sub(r"^\w+://", f"{self.scheme}://", url, 1)
url = re.sub(r"^\w+://", f"{self.scheme}://", url, 1)

return url

0 comments on commit b25879b

Please sign in to comment.