Skip to content
Snippets Groups Projects
Commit a8ea201b authored by Diana Huang's avatar Diana Huang
Browse files

Move the link map to the settings.

parent 5b3f5a47
No related merge requests found
......@@ -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'}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment