diff --git a/lms/djangoapps/discussion/templates/discussion/discussion_mfe_embed.html b/lms/djangoapps/discussion/templates/discussion/discussion_mfe_embed.html
index 54159e75c14d..69dcc6077442 100644
--- a/lms/djangoapps/discussion/templates/discussion/discussion_mfe_embed.html
+++ b/lms/djangoapps/discussion/templates/discussion/discussion_mfe_embed.html
@@ -7,10 +7,33 @@
<%!
import json
from django.utils.translation import ugettext as _
+from openedx.core.djangolib.js_utils import js_escaped_string
%>
+<%block name="js_extra">
+
+%block>
+
+ data-course-id="${course_key}">
<%include file="_switch_experience_fragment.html" />
-
+