diff --git a/src/course-home/outline-tab/LmsHtmlFragment.jsx b/src/course-home/outline-tab/LmsHtmlFragment.jsx index 778e7d79d8..85e3fb4fa5 100644 --- a/src/course-home/outline-tab/LmsHtmlFragment.jsx +++ b/src/course-home/outline-tab/LmsHtmlFragment.jsx @@ -1,6 +1,5 @@ import React, { useEffect, useRef } from 'react'; import PropTypes from 'prop-types'; - import { getConfig } from '@edx/frontend-platform'; const LmsHtmlFragment = ({ @@ -10,14 +9,21 @@ const LmsHtmlFragment = ({ ...rest }) => { const direction = document.documentElement?.getAttribute('dir') || 'ltr'; + + const getCssUrl = () => { + const baseUrl = getConfig().BASE_URL; + const standardizedBaseUrl = /^https?:\/\//.test(baseUrl) ? baseUrl : `https://${baseUrl}`; + return `${standardizedBaseUrl}/static/LmsHtmlFragment.css`; + }; + const wholePage = ` - + - + - + - ${html} + ${html}