mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-11 22:14:06 -05:00
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`.
10 lines
473 B
HTML
10 lines
473 B
HTML
{% extends "withoutnav_template.html" %}
|
||
{% block per_page_title %}You’re not authorised to see this page{% endblock %}
|
||
{% block maincolumn_content %}
|
||
<div class="govuk-grid-row">
|
||
<div class="govuk-grid-column-two-thirds">
|
||
<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('main.sign_in' )}}">Sign in</a> to GOV.UK Notify and try again.</p>
|
||
</div>
|
||
{% endblock %}
|