diff --git a/hc/front/views.py b/hc/front/views.py index 14eb8df1..61f9f56e 100644 --- a/hc/front/views.py +++ b/hc/front/views.py @@ -337,8 +337,8 @@ def add_pushover(request): nonce = get_random_string() request.session["po_nonce"] = nonce - failure_url = request.build_absolute_uri(reverse("hc-channels")) - success_url = request.build_absolute_uri(reverse("hc-add-pushover")) + "?" + urlencode({ + failure_url = settings.SITE_ROOT + reverse("hc-channels") + success_url = settings.SITE_ROOT + reverse("hc-add-pushover") + "?" + urlencode({ "nonce": nonce, "prio": request.POST.get("po_priority", "0"), })