You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So we probably need to change the condition to {% if not request or not request.path == '/search/' %}
Although to be fair I'm a bit puzzled that this is run when sitemap.xml is requested. Maybe it reached this point as a fallback of the following issue.
TemplateDoesNotExists
See MADEWITHWAGTAIL-5 on Sentry.
The sitemap.xml template is not found.
The text was updated successfully, but these errors were encountered:
Key Error
See
MADEWITHWAGTAIL-6
andMADEWITHWAGTAIL-7
on Sentry.In this context,
request
isn't available here:madewithwagtail/core/templatetags/core_tags.py
Line 31 in a04a257
This should be replaced with `context.get('request')
Note that the template uses the
request
heremadewithwagtail/core/templates/core/includes/menu.html
Line 15 in a04a257
So we probably need to change the condition to
{% if not request or not request.path == '/search/' %}
Although to be fair I'm a bit puzzled that this is run when
sitemap.xml
is requested. Maybe it reached this point as a fallback of the following issue.TemplateDoesNotExists
See
MADEWITHWAGTAIL-5
on Sentry.The
sitemap.xml
template is not found.The text was updated successfully, but these errors were encountered: