diff --git a/lms/templates/main_django.html b/lms/templates/main_django.html index bc47156e58..dd19587be9 100644 --- a/lms/templates/main_django.html +++ b/lms/templates/main_django.html @@ -31,11 +31,13 @@ {% trans "Skip to this view's content" %} - {% if ENABLE_NEW_EDX_HEADER %} - {% include "navigation.html" %} - {% else %} - {% include "original_navigation.html" %} - {% endif %} + {% with course=request.course %} + {% if ENABLE_NEW_EDX_HEADER %} + {% include "navigation.html" %} + {% else %} + {% include "original_navigation.html" %} + {% endif %} + {% endwith %}
{% block body %}{% endblock %} {% block bodyextra %}{% endblock %}