Link back to uploaded letters page

If you’ve come to look at a notification via the uploaded letters page
then the ‘< back’ link should take you back there, not to the usual
activity page.
This commit is contained in:
Chris Hill-Scott
2020-05-11 14:20:53 +01:00
parent 34f5417844
commit a9998958b7
7 changed files with 47 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ import json
import urllib
import uuid
from datetime import datetime
from functools import partial
from io import BytesIO
from zipfile import BadZipFile
@@ -126,6 +127,12 @@ def uploaded_letters(service_id, letter_print_day):
letter_print_day,
),
letter_print_day=letter_print_day,
single_notification_url=partial(
url_for,
'.view_notification',
service_id=current_service.id,
from_uploaded_letters=letter_print_day,
)
)