Merge pull request #23180 from edx/dcs/learning-slash
Learning MFE URL should not have a slash
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user