Misuse of urljoin in Gradebook URL from Instructor Panel

This commit is contained in:
Daniel Francis
2021-01-12 15:58:08 -04:00
committed by spokerman12
parent 9be8a2b562
commit f53f5df505

View File

@@ -571,7 +571,7 @@ def _section_student_admin(course, access):
'spoc_gradebook_url': reverse('spoc_gradebook', kwargs={'course_id': six.text_type(course_key)}),
}
if is_writable_gradebook_enabled(course_key) and settings.WRITABLE_GRADEBOOK_URL:
section_data['writable_gradebook_url'] = urljoin(settings.WRITABLE_GRADEBOOK_URL, '/' + text_type(course_key))
section_data['writable_gradebook_url'] = '{}/{}'.format(settings.WRITABLE_GRADEBOOK_URL, text_type(course_key))
return section_data