Skip to content

Commit

Permalink
Fix URL handling for shift signups
Browse files Browse the repository at this point in the history
By changing the existing variable I broke the replace() line. This should hopefully fix that
  • Loading branch information
kitsuta committed Nov 8, 2024
1 parent 894146a commit ccc1cd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uber/site_sections/staffing.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ def _convert_urls(desc):
return desc

for url in urls:
new_url = url
if not url.startswith('http'):
url = 'https://' + url
desc = desc.replace(url, f'<a href="{url}" target="_blank">{url}</a>')
new_url = 'https://' + url
desc = desc.replace(url, f'<a href="{new_url}" target="_blank">{url}</a>')
return desc


Expand Down

0 comments on commit ccc1cd3

Please sign in to comment.