diff --git a/README.rst b/README.rst index 1095de79..037743bd 100644 --- a/README.rst +++ b/README.rst @@ -21,6 +21,7 @@ Environment Variables This component requires that the following environment variable be set by the consuming micro-frontend. +* ``LMS_BASE_URL`` - The URL of the LMS of your Open edX instance. * ``LOGO_TRADEMARK_URL`` - This is a URL to a logo for use in the footer. This is a different environment variable than ``LOGO_URL`` (used in frontend-component-header) to accommodate sites that would like to have additional trademark information on a logo in the footer, such as a (tm) or (r) symbol. ************ diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index ba7ba7b2..d8234c73 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -9,6 +9,7 @@ import messages from './Footer.messages'; import LanguageSelector from './LanguageSelector'; ensureConfig([ + 'LMS_BASE_URL', 'LOGO_TRADEMARK_URL', ], 'Footer component'); @@ -58,7 +59,7 @@ class SiteFooter extends React.Component {
', () => { authenticatedUser: null, config: { LOGO_TRADEMARK_URL: process.env.LOGO_TRADEMARK_URL, + LMS_BASE_URL: process.env.LMS_BASE_URL, }, }} > @@ -36,6 +37,7 @@ describe('