diff --git a/lms/templates/main.html b/lms/templates/main.html
index 60658111c84b..c689ad4e02d8 100644
--- a/lms/templates/main.html
+++ b/lms/templates/main.html
@@ -36,6 +36,7 @@
if (window.location !== window.top.location) {
window.top.location = window.location;
}
+ window.baseUrl = "${settings.STATIC_URL}";
})(this);
% endif