Merge pull request #23180 from edx/dcs/learning-slash

Learning MFE URL should not have a slash
This commit is contained in:
Dave St.Germain
2020-02-24 11:15:14 -05:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -295,4 +295,4 @@ EDXNOTES_INTERNAL_API = 'http://edx.devstack.edxnotesapi:18120/api/v1'
EDXNOTES_CLIENT_NAME = 'edx_notes_api-backend-service'
############## Settings for Microfrontends #########################
LEARNING_MICROFRONTEND_URL = 'http://localhost:2000/'
LEARNING_MICROFRONTEND_URL = 'http://localhost:2000'

View File

@@ -21,7 +21,7 @@ show_preview_menu = course and can_masquerade and supports_preview_menu
def get_mfe_link():
if section:
mfe_link = '{}course/{}/{}'.format(settings.LEARNING_MICROFRONTEND_URL, course.id, section.location)
mfe_link = '{}/course/{}/{}'.format(settings.LEARNING_MICROFRONTEND_URL, course.id, section.location)
if unit:
mfe_link += '/' + unit
else: