mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 03:48:26 -04:00
Fix sign in link on 401 page
We've seen someone getting a `500` when trying to visit the `/metrics` endpoint. This is because the metrics endpoint is not in the `main` blueprint, so we can't use url_for with a relative endpoint. Although only bots visit '/metrics' without authorisation, this stops the odd `500`.
This commit is contained in:
@@ -4,6 +4,6 @@
|
|||||||
<div class="govuk-grid-row">
|
<div class="govuk-grid-row">
|
||||||
<div class="govuk-grid-column-two-thirds">
|
<div class="govuk-grid-column-two-thirds">
|
||||||
<h1>You’re not authorised to see this page</h1>
|
<h1>You’re not authorised to see this page</h1>
|
||||||
<p class="govuk-body"><a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.sign_in' )}}">Sign in</a> to GOV.UK Notify and try again.</p>
|
<p class="govuk-body"><a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('main.sign_in' )}}">Sign in</a> to GOV.UK Notify and try again.</p>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user