Skip to content

Commit fa582da

Browse files
fix: mtkg url infinite redirect loop
1 parent 99da6c2 commit fa582da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lms/djangoapps/branding/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def index(request):
5656
if enable_mktg_site:
5757
root_url = marketing_link('ROOT')
5858
if root_url and not root_url.startswith('/'):
59-
return redirect(root_url)
59+
lms_root = getattr(settings, 'LMS_ROOT_URL', None)
60+
if root_url != lms_root:
61+
return redirect(root_url)
6062

6163
domain = request.headers.get('Host')
6264

0 commit comments

Comments
 (0)