Have urls.py fully parse locator url

This commit is contained in:
Don Mitchell
2013-10-18 16:51:36 -04:00
parent 6ba0208fee
commit 8902a89fbc
7 changed files with 44 additions and 32 deletions

View File

@@ -15,10 +15,7 @@
% if context_course:
<%
ctx_loc = context_course.location
index_url = reverse(
'contentstore.views.course_handler',
kwargs={'course_url': loc_mapper().translate_location(ctx_loc.course_id, ctx_loc, False, True)}
)
index_url = loc_mapper().translate_location(ctx_loc.course_id, ctx_loc, False, True).url_reverse('course/', '')
%>
<h2 class="info-course">
<span class="sr">${_("Current Course:")}</span>