From d902c62e1c8d6e32927e66da680772c544cd4403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 25 Apr 2019 15:01:42 +0200 Subject: [PATCH] fix: The confirm message about the mail sent wasn't displayed in prod --- website/web/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/web/__init__.py b/website/web/__init__.py index 4a62945..b2e6810 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -362,4 +362,5 @@ def send_mail(): if not urlabuse_query.get_mail_sent(url): ip = _get_user_ip(request) send(url, ip) - return redirect(url_for('index')) + form = URLForm() + return render_template('index.html', form=form)