mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-16 11:20:12 -04:00
trim non-existant pages further
This commit is contained in:
@@ -47,7 +47,7 @@ class ValidGovEmail:
|
||||
message = '''
|
||||
Enter a public sector email address or
|
||||
<a class="govuk-link govuk-link--no-visited-state" href="{}">find out who can use Notify</a>
|
||||
'''.format(url_for('main.who_can_use_notify'))
|
||||
'''.format(url_for('main.features'))
|
||||
if not is_gov_user(field.data.lower()):
|
||||
raise ValidationError(message)
|
||||
|
||||
|
||||
@@ -293,15 +293,7 @@ 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')
|
||||
def who_can_use_notify():
|
||||
return render_template(
|
||||
'views/guidance/who-can-use-notify.html',
|
||||
navigation_links=features_nav(),
|
||||
)
|
||||
return redirect(url_for('.features'), 301)
|
||||
|
||||
|
||||
@main.route('/trial-mode')
|
||||
|
||||
@@ -15,9 +15,6 @@
|
||||
<li class="get-started-list__item">
|
||||
<h2 class="get-started-list__heading">Check if US Notify is right for you</h2>
|
||||
<p class="govuk-body">Read about our <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.features') }}">features</a>, <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.pricing') }}">pricing</a> and <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.roadmap') }}">roadmap</a>.</p>
|
||||
<p class="govuk-body">
|
||||
Check <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.who_can_use_notify') }}">whether your organisation can use Notify</a>.
|
||||
</p>
|
||||
</li>
|
||||
|
||||
<li class="get-started-list__item">
|
||||
|
||||
@@ -163,7 +163,6 @@ def test_guidance_pages_link_to_service_pages_when_signed_in(
|
||||
('old_using_notify', 'using_notify'),
|
||||
('delivery_and_failure', 'message_status'),
|
||||
('callbacks', 'documentation'),
|
||||
('who_its_for', 'who_can_use_notify'),
|
||||
])
|
||||
def test_old_static_pages_redirect(
|
||||
client_request,
|
||||
|
||||
@@ -125,7 +125,7 @@ def test_should_return_200_when_email_is_not_gov_uk(
|
||||
page.select_one('.govuk-error-message').text
|
||||
)
|
||||
assert page.select_one('.govuk-error-message a')['href'] == url_for(
|
||||
'main.who_can_use_notify'
|
||||
'main.features'
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -332,7 +332,6 @@ EXCLUDED_ENDPOINTS = tuple(map(Navigation.get_endpoint_with_blueprint, {
|
||||
'webauthn_complete_register',
|
||||
'webauthn_begin_authentication',
|
||||
'webauthn_complete_authentication',
|
||||
'who_can_use_notify',
|
||||
'who_its_for',
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user