Add a redirect for the letter specification

This way we have a URL we can give people that always points to the
latest version of the spec.

And it makes our code more Flask-idiomatic to be using `url_for` to be
generating a URL, rather than passing around a constant.
This commit is contained in:
Chris Hill-Scott
2020-01-15 10:56:14 +00:00
parent b57e4a0d0d
commit 3762daad84
8 changed files with 45 additions and 28 deletions

View File

@@ -33,7 +33,7 @@
)}}
</p>
<p>You can upload a single letter as a PDF.</p>
<p>Your file must meet our <a href="{{ letter_specification_url }}">letter specification</a>.</p>
<p>Your file must meet our <a href="{{ url_for('.letter_spec') }}">letter specification</a>.</p>
<p>To help you set up your letter you can download a <a href="https://docs.notifications.service.gov.uk/documentation/images/notify-pdf-letter-word-template-v1.0.docx">Word document template</a>.</p>
</div>