Merge pull request #2964 from alphagov/different-back-link-from-job

Always go back to previous page from notification
This commit is contained in:
Chris Hill-Scott
2019-05-15 16:26:34 +01:00
committed by GitHub
6 changed files with 74 additions and 3 deletions

View File

@@ -55,7 +55,7 @@
field_headings_visible=False
) %}
{% call row_heading() %}
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id) }}">{{ item.to }}</a>
<a class="file-list-filename" href="{{ url_for('.view_notification', service_id=current_service.id, notification_id=item.id, from_job=job.id) }}">{{ item.to }}</a>
<p class="file-list-hint">
{{ item.preview_of_content }}
</p>

View File

@@ -13,7 +13,7 @@
{{ page_header(
message_count_label(1, template.template_type, suffix='') | capitalize,
back_link=None if request.args.get('help') == '0' else url_for('main.view_notifications', service_id=current_service.id, message_type=template.template_type)
back_link=back_link
) }}
<p>