diff --git a/common/djangoapps/mitxmako/shortcuts.py b/common/djangoapps/mitxmako/shortcuts.py index 5ce641e6ee..7e78d08843 100644 --- a/common/djangoapps/mitxmako/shortcuts.py +++ b/common/djangoapps/mitxmako/shortcuts.py @@ -28,11 +28,8 @@ def marketing_link(name): possible URLs for certain links. This function is to decides which URL should be provided. """ - link_map = {'ABOUT': 'about_edx', - 'CONTACT': 'contact', - 'FAQ': 'help_edx', - 'COURSES': 'courses'} + link_map = settings.MKTG_URLS.get('LINK_MAP') if settings.MITX_FEATURES.get('ENABLE_MKTG_SITE'): return settings.MKTG_URLS.get('ROOT') + settings.MKTG_URLS.get(name) elif name in link_map: diff --git a/lms/envs/common.py b/lms/envs/common.py index 7710ca6993..568ad21cec 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -595,3 +595,7 @@ MKTG_URLS = {'ROOT': '', 'CONTACT': '/contact', 'HOW_IT_WORKS': '/how-it-works', 'SCHOOLS': '/schools'} +MKTG_URLS['LINK_MAP'] = {'ABOUT': 'about_edx', + 'CONTACT': 'contact', + 'FAQ': 'help_edx', + 'COURSES': 'courses'}