From a54ef273067698670f03b6c90d72b6237239bf58 Mon Sep 17 00:00:00 2001 From: Matt Tuchfarber Date: Thu, 28 Jan 2021 16:20:56 -0500 Subject: [PATCH] Fix dashboard coaching redirect --- .../lms/templates/dashboard/_dashboard_course_resume.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html b/themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html index 025fc3a20b..947d9a6141 100644 --- a/themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html +++ b/themes/edx.org/lms/templates/dashboard/_dashboard_course_resume.html @@ -26,14 +26,15 @@ MICROBACHELORS_SLUG = 'microbachelors' % else: <% + redirected_course_target = course_target account_mfe_url = getattr(settings, 'ACCOUNT_MICROFRONTEND_URL', '') or '' show_coaching_consent_form = plugins.get("coaching", {}).get("show_coaching_consent_form") if related_programs and account_mfe_url != '' and show_coaching_consent_form: for program in related_programs: if program.get('type_attrs', {}).get('slug') == MICROBACHELORS_SLUG: - course_target = "%s/coaching_consent?next=%s" % (account_mfe_url, getattr(settings, 'LMS_ROOT_URL', '') + course_target) + redirected_course_target = "%s/coaching_consent?next=%s" % (account_mfe_url, getattr(settings, 'LMS_ROOT_URL', '') + course_target) %> - ${_('View Course')}