From 2ef7829fb7ee48238d153aaba90952e8a4c31622 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Thu, 4 Dec 2014 08:46:32 -0500 Subject: [PATCH] Fix issue with iframe redirect --- lms/templates/courseware/mktg_course_about.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lms/templates/courseware/mktg_course_about.html b/lms/templates/courseware/mktg_course_about.html index 0c104a017b..e1f71a2af2 100644 --- a/lms/templates/courseware/mktg_course_about.html +++ b/lms/templates/courseware/mktg_course_about.html @@ -22,7 +22,9 @@ var email_opt_in = $("input[name='email_opt_in']").val(), current_href = $("a.register").attr("href"); - $("a.register").attr("href", current_href + "&email_opt_in=" + email_opt_in) + if (current_href) { + $("a.register").attr("href", current_href + "&email_opt_in=" + email_opt_in) + } $("#class_enroll_form").submit(); event.preventDefault();