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')}