Go back to triage page if you’ve come from there

This commit is contained in:
Chris Hill-Scott
2020-03-25 12:17:39 +00:00
parent 8335de1432
commit 2ca32019e4
3 changed files with 38 additions and 1 deletions

View File

@@ -135,6 +135,11 @@ def feedback(ticket_type):
return render_template(
'views/support/form.html',
form=form,
back_link=(
url_for('.support')
if severe is None else
url_for('.triage', ticket_type=ticket_type)
),
show_status_page_banner=(ticket_type == PROBLEM_TICKET_TYPE),
page_title={
GENERAL_TICKET_TYPE: 'Contact GOV.UK Notify support',