diff --git a/app/main/views/index.py b/app/main/views/index.py index 20c445b8c..bf5ed00b5 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -96,7 +96,7 @@ def delivery_and_failure(): @main.route('/design-patterns-content-guidance') def design_content(): - return render_template('views/design-patterns-content-guidance.html') + return redirect('https://www.gov.uk/service-manual/design/sending-emails-and-text-messages', 301) @main.route('/_email') @@ -228,7 +228,7 @@ def integration_testing(): @main.route('/callbacks') def callbacks(): - return render_template('views/callbacks.html') + return redirect(url_for('main.documentation'), 301) # --- Features page set --- # diff --git a/app/templates/views/api/callbacks/delivery-status-callback.html b/app/templates/views/api/callbacks/delivery-status-callback.html index 2f43e9a9f..9e08dd9ab 100644 --- a/app/templates/views/api/callbacks/delivery-status-callback.html +++ b/app/templates/views/api/callbacks/delivery-status-callback.html @@ -19,7 +19,7 @@
When you send an email or text message, we can tell you if Notify was able to deliver it. - Check the callback documentation for more information. + Read the Callbacks section of our API documentation for more information.
{% call form_wrapper() %} diff --git a/app/templates/views/callbacks.html b/app/templates/views/callbacks.html deleted file mode 100644 index d60aa1b93..000000000 --- a/app/templates/views/callbacks.html +++ /dev/null @@ -1,70 +0,0 @@ -{% from "components/table.html" import mapping_table, row, text_field, edit_field, field, row_heading with context %} -{% extends "withoutnav_template.html" %} - -{% block per_page_title %} - Callback documentation -{% endblock %} - -{% block maincolumn_content %} - -A callback lets you receive messages from Notify to a URL you choose.
-You’ll need to provide a bearer token, for security. We’ll add this to the authorisation header of the callback request.
-The callback message is in JSON.
- -When you send an email or text message through Notify, we can send a receipt to your callback URL to tell you if we were able to deliver it or not.
-If your service receives text messages in Notify, we can forward them to your callback URL as soon as they arrive.
-It should not be relied upon
- {% endcall %} - -Talk to your call centre staff to find out why people call – this is probably why they are anxious. For example:
- -If someone needs to do something, tell them. For example:
- -Your MOT expires on 28 September – get an MOT
- -The deadline for tax returns is 31 January – complete your self assessment tax return
- -Your passport photo didn’t meet our standards – take a new photo
- -When someone does something important, send a security check to the people who might be affected. For example:
- -When someone wants to sign in, send a 2-factor authentication code to the number you have on file. For example: Your GOV.UK verification code is 123 456
-Use radio buttons to ask the user how they’d like to be contacted:
- -When the user selects a contact method, dynamically prompt them for contact details (if you don’t already have them)
- -Ask the user to pick one primary contact method. Users don’t like duplicate notifications.
- -You can still contact them by other contact methods if appropriate.
- -Collect these using the patterns in the Government Service Manual and the Hackpad.
- -Tell the user that you will send them notifications. For example:
- ---We will email you about this petition, and nothing else. You can unsubscribe at any time
-
Don’t explain the whole process – just tell the user what will happen next.
- -Don’t send a message for steps that aren’t important to the user. For example, you don’t need to tell the user about background checks unless they fail one of the checks.
- -Say ‘Dear’, not ‘Hi’ – some people prefer ‘Hi’ and some prefer ‘Dear’, but only the people who prefer ‘Dear’ care enough to complain when we say ‘Hi’
- -