Move the link map to the settings.
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user