diff --git a/erpnext/www/lms/course.html b/erpnext/www/lms/course.html
index 9896b017aa3..11b134dc2cf 100644
--- a/erpnext/www/lms/course.html
+++ b/erpnext/www/lms/course.html
@@ -6,10 +6,10 @@
{% endblock %}
{% block content %}
-
- {% with content = current_content, next_content = next_content, course_name = course_name, program_name = program_name %}
- {% include "www/lms/templates/includes/" + content_type.lower() + ".html" %}
- {% endwith %}
+
+
+{% include "www/lms/templates/includes/" + content_type.lower() + ".html" %}
+
{% endblock %}
\ No newline at end of file
diff --git a/erpnext/www/lms/course.py b/erpnext/www/lms/course.py
index 9e874273ee4..a05725e4368 100644
--- a/erpnext/www/lms/course.py
+++ b/erpnext/www/lms/course.py
@@ -17,7 +17,7 @@ def get_context(context):
current_content = frappe.get_doc(content_type, content_name)
# Saving context variables for Jinja
- context.current_content = current_content
+ context.content = current_content
context.course_name = course_name
context.program_name = program_name
context.content_type = content_type
diff --git a/erpnext/www/lms/templates/includes/article.html b/erpnext/www/lms/templates/includes/article.html
index 15835b816fe..88634bf14a0 100644
--- a/erpnext/www/lms/templates/includes/article.html
+++ b/erpnext/www/lms/templates/includes/article.html
@@ -8,9 +8,7 @@
- {% with next_content = next_content, course_name = course_name, program_name = program_name %}
{% include "www/lms/templates/includes/lms-nav.html" %}
- {% endwith %}
- {% with next_content = next_content, course_name = course_name, program_name = program_name %}
{% include "www/lms/templates/includes/lms-nav.html" %}
- {% endwith %}