From f8886239d07a34b6539ba8d07785b537e91860f6 Mon Sep 17 00:00:00 2001 From: "Dave St.Germain" Date: Mon, 24 Feb 2020 10:40:08 -0500 Subject: [PATCH] Learning MFE URL should not have a slash --- lms/envs/devstack.py | 2 +- lms/templates/preview_menu.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/envs/devstack.py b/lms/envs/devstack.py index 300de1229d..936c1fe981 100644 --- a/lms/envs/devstack.py +++ b/lms/envs/devstack.py @@ -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' diff --git a/lms/templates/preview_menu.html b/lms/templates/preview_menu.html index 44e0d546a9..c2b7ad8526 100644 --- a/lms/templates/preview_menu.html +++ b/lms/templates/preview_menu.html @@ -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: