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

@@ -208,6 +208,7 @@ class HeaderNavigation(Navigation):
'invite_org_user',
'invite_user',
'no_cookie.letter_branding_preview_image',
'letter_spec',
'letter_template',
'link_service_to_organisation',
'manage_org_users',
@@ -533,6 +534,7 @@ class MainNavigation(Navigation):
'no_cookie.letter_branding_preview_image',
'live_services',
'live_services_csv',
'letter_spec',
'letter_template',
'message_status',
'manage_org_users',
@@ -763,6 +765,7 @@ class CaseworkNavigation(Navigation):
'invite_user',
'no_cookie.letter_branding_preview_image',
'letter_branding',
'letter_spec',
'letter_template',
'link_service_to_organisation',
'live_services',
@@ -1049,6 +1052,7 @@ class OrgNavigation(Navigation):
'invite_user',
'letter_branding',
'no_cookie.letter_branding_preview_image',
'letter_spec',
'letter_template',
'link_service_to_organisation',
'live_services',