mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-02 17:48:50 -04:00
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:
@@ -120,6 +120,12 @@ def view_notification(service_id, notification_id):
|
||||
service_id=current_service.id,
|
||||
job_id=request.args.get('from_job'),
|
||||
)
|
||||
elif request.args.get('from_uploaded_letters'):
|
||||
back_link = url_for(
|
||||
'main.uploaded_letters',
|
||||
service_id=current_service.id,
|
||||
letter_print_day=request.args.get('from_uploaded_letters'),
|
||||
)
|
||||
else:
|
||||
back_link = url_for(
|
||||
'main.view_notifications',
|
||||
|
||||
Reference in New Issue
Block a user