mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
Redirect old URL
This commit is contained in:
@@ -321,6 +321,11 @@ def get_started():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@main.route('/using-notify/who-its-for')
|
||||||
|
def who_its_for():
|
||||||
|
return redirect(url_for('.who_can_use_notify'), 301)
|
||||||
|
|
||||||
|
|
||||||
@main.route('/using-notify/who-can-use-notify')
|
@main.route('/using-notify/who-can-use-notify')
|
||||||
def who_can_use_notify():
|
def who_can_use_notify():
|
||||||
return render_template(
|
return render_template(
|
||||||
|
|||||||
@@ -351,6 +351,7 @@ class HeaderNavigation(Navigation):
|
|||||||
'view_template_versions',
|
'view_template_versions',
|
||||||
'whitelist',
|
'whitelist',
|
||||||
'who_can_use_notify',
|
'who_can_use_notify',
|
||||||
|
'who_its_for',
|
||||||
}
|
}
|
||||||
|
|
||||||
# header HTML now comes from GOVUK Frontend so requires a boolean, not an attribute
|
# header HTML now comes from GOVUK Frontend so requires a boolean, not an attribute
|
||||||
@@ -669,6 +670,7 @@ class MainNavigation(Navigation):
|
|||||||
'view_providers',
|
'view_providers',
|
||||||
'no_cookie.view_template_version_preview',
|
'no_cookie.view_template_version_preview',
|
||||||
'who_can_use_notify',
|
'who_can_use_notify',
|
||||||
|
'who_its_for',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -978,6 +980,7 @@ class CaseworkNavigation(Navigation):
|
|||||||
'view_template_versions',
|
'view_template_versions',
|
||||||
'whitelist',
|
'whitelist',
|
||||||
'who_can_use_notify',
|
'who_can_use_notify',
|
||||||
|
'who_its_for',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1288,4 +1291,5 @@ class OrgNavigation(Navigation):
|
|||||||
'view_template_versions',
|
'view_template_versions',
|
||||||
'whitelist',
|
'whitelist',
|
||||||
'who_can_use_notify',
|
'who_can_use_notify',
|
||||||
|
'who_its_for',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ def test_guidance_pages_link_to_service_pages_when_signed_in(
|
|||||||
('old_using_notify', 'using_notify'),
|
('old_using_notify', 'using_notify'),
|
||||||
('delivery_and_failure', 'message_status'),
|
('delivery_and_failure', 'message_status'),
|
||||||
('callbacks', 'documentation'),
|
('callbacks', 'documentation'),
|
||||||
|
('who_its_for', 'who_can_use_notify'),
|
||||||
])
|
])
|
||||||
def test_old_static_pages_redirect(
|
def test_old_static_pages_redirect(
|
||||||
client,
|
client,
|
||||||
|
|||||||
Reference in New Issue
Block a user