mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-10 01:55:41 -04:00
Support service IDs in ‘find services by name’
Sometimes we get a service ID from a support ticket or a Slack discussion. Rather than having to hack the URL, this PR augments the ‘Find services by name’ page to support service IDs. If a UUID is entered, it assumes that it’s been given a service ID, and redirects straight to the dashboard for that service, without showing any search results (a complete UUID would never match multiple services). If the UUID is not a service ID, the user will get a 404.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
) %}
|
||||
<div class="govuk-grid-column-three-quarters">
|
||||
{{ form.search(param_extensions={
|
||||
"label": {"text": "Find services by name, or by partial name"}
|
||||
"label": {"text": "Find services by name, partial name, or service ID"}
|
||||
}) }}
|
||||
</div>
|
||||
<div class="govuk-grid-column-one-quarter">
|
||||
|
||||
Reference in New Issue
Block a user