From 73163b9bb03a9d3d1d71bdaab9be27cb203b2c3e Mon Sep 17 00:00:00 2001 From: Will Daly Date: Mon, 10 Nov 2014 12:04:07 -0500 Subject: [PATCH] Use href in marketing link if available to make A/B testing easier --- lms/templates/courseware/mktg_course_about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/courseware/mktg_course_about.html b/lms/templates/courseware/mktg_course_about.html index c71113ef35..a4fcc1d58c 100644 --- a/lms/templates/courseware/mktg_course_about.html +++ b/lms/templates/courseware/mktg_course_about.html @@ -29,7 +29,7 @@ window.top.location.href = "${reverse('dashboard')}"; } } else if (xhr.status == 403) { - window.top.location.href = "${reverse('register_user')}?course_id=${course.id | u}&enrollment_action=enroll"; + window.top.location.href = $("a.register").attr("href") || "${reverse('register_user')}?course_id=${course.id | u}&enrollment_action=enroll"; } else { $('#register_error').html( (xhr.responseText ? xhr.responseText : "${_("An error occurred. Please try again later.")}")