From b1848b3216ca01818c871e32430466567915d22f Mon Sep 17 00:00:00 2001 From: Katie Smith Date: Thu, 8 Apr 2021 08:42:02 +0100 Subject: [PATCH] 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`. --- app/templates/error/401.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/error/401.html b/app/templates/error/401.html index 0bf19acab..86487df99 100644 --- a/app/templates/error/401.html +++ b/app/templates/error/401.html @@ -4,6 +4,6 @@

You’re not authorised to see this page

-

Sign in to GOV.UK Notify and try again.

+

Sign in to GOV.UK Notify and try again.

{% endblock %}