diff --git a/app/dashboard/views/support.py b/app/dashboard/views/support.py index 1556ab17..387217ef 100644 --- a/app/dashboard/views/support.py +++ b/app/dashboard/views/support.py @@ -75,7 +75,6 @@ def create_zendesk_request(email: str, content: str, files: [FileStorage]) -> bo response = requests.post(url, data=json.dumps(data), headers=headers) if not check_zendesk_response_status(response.status_code): return False - flash("Ticket was created. You should receive an email notification", "success") LOG.debug("Ticket created") return True @@ -103,4 +102,5 @@ def process_support_dialog(): "dashboard/support.html", ticket_email=email, ticket_content=content ) g.deduct_limit = True - return render_template("dashboard/support_ticket_created.html", ticket_email=email) + flash("Ticket created. You should have received an email notification.", "success") + return redirect(url_for("dashboard.index")) diff --git a/templates/dashboard/support_ticket_created.html b/templates/dashboard/support_ticket_created.html deleted file mode 100644 index 0b2d2cc2..00000000 --- a/templates/dashboard/support_ticket_created.html +++ /dev/null @@ -1,37 +0,0 @@ -{% extends 'default.html' %} - -{% set active_page = None %} - -{% block title %} - Support -{% endblock %} - -{% block head %} - -{% endblock %} - -{% block default_content %} - -
- -
-
-
Support ticket has been created for {{ ticketEmail }}
-
- You should have received an email notification. We'll get in contact with you shortly. -
-
-
- -
- -{% endblock %} - - - diff --git a/templates/header.html b/templates/header.html index a331f63d..1ecfc90a 100644 --- a/templates/header.html +++ b/templates/header.html @@ -81,7 +81,7 @@