Skip to content

Commit 36e14f8

Browse files
fix: mtkg url infinite redirect loop
1 parent fa582da commit 36e14f8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

common/djangoapps/edxmako/shortcuts.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ def marketing_link(name):
6767
return '#'
6868

6969
if enable_mktg_site and name in marketing_urls:
70-
# special case for when we only want the root marketing URL
71-
if name == 'ROOT':
72-
return marketing_urls.get('ROOT')
73-
# special case for new enterprise marketing url with custom tracking query params
74-
if name == 'ENTERPRISE':
75-
enterprise_url = marketing_urls.get(name)
76-
# if url is not relative, then return it without joining to root
77-
if not enterprise_url.startswith('/'):
78-
return enterprise_url
7970
# Using urljoin here allows us to enable a marketing site and set
8071
# a site ROOT, but still specify absolute URLs for other marketing
8172
# URLs in the MKTG_URLS setting

0 commit comments

Comments
 (0)