From 7637f063e95bfaed02d7e711a3c8730b6ee391a3 Mon Sep 17 00:00:00 2001 From: Nimisha Asthagiri Date: Mon, 8 Sep 2014 11:22:20 -0400 Subject: [PATCH] LMS-11371 Fix register bug - encoding of course_id. --- lms/templates/courseware/course_about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/courseware/course_about.html b/lms/templates/courseware/course_about.html index a259f21289..1b5ee9a32d 100644 --- a/lms/templates/courseware/course_about.html +++ b/lms/templates/courseware/course_about.html @@ -102,7 +102,7 @@ location.href = xhr.responseText; } } else if (xhr.status == 403) { - location.href = "${reverse('register_user')}?course_id=${course.id.to_deprecated_string()}&enrollment_action=enroll"; + location.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.')