Skip to content

Commit 249be40

Browse files
committed
Fix 500 error page
No context variables are passed to the template, so don't try to render navigation based on current user.
1 parent 2d74b46 commit 249be40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

controlpanel/frontend/jinja2/500.html

+10
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
{% set page_title = "Sorry, there is a problem with the service" %}
44

5+
{% block header %}
6+
{{ govukHeader({
7+
'serviceName': service_name,
8+
'serviceUrl': '#',
9+
'navigation': [],
10+
}) }}
11+
{% endblock %}
12+
13+
{% set hide_nav = True %}
14+
515
{% block content %}
616
<h1 class="govuk-heading-xl">{{ page_title }}</h1>
717

0 commit comments

Comments
 (0)