Skip to content

Commit

Permalink
Merge pull request #139 from projecthorus/discord_link
Browse files Browse the repository at this point in the history
Add discord redirect
  • Loading branch information
darksidelemm authored Apr 12, 2024
2 parents 2b45e41 + ceb6353 commit 020e959
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lambda/redirect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ def handler(event, context):
return redirect('https://www.paypal.com/donate/?hosted_button_id=4V7L43MD5CQ52')
if uri.startswith('/go/status'):
return redirect("https://grafana.v2.sondehub.org/d/bhdBI0KVz/infrastructure")
if uri.startswith('/go/discord'):
# Discord invite URL as of 2024-04-12
return redirect('https://discord.gg/DHd9UgenEb')
if uri.startswith('/go/'):
tinyurl = uri.replace("/go/", "")
return redirect('https://tinyurl.com/' + tinyurl)
Expand Down

0 comments on commit 020e959

Please sign in to comment.