diff --git a/lms/templates/discussion/thread.html b/lms/templates/discussion/thread.html
index 1f44af9d18..d82005ae51 100644
--- a/lms/templates/discussion/thread.html
+++ b/lms/templates/discussion/thread.html
@@ -47,10 +47,10 @@
if kwargs.get('show_comments', False):
url_for_thread = ""
else:
- url_for_thread = reverse('django_comment_client.forum.views.single_thread', args=[course_id, thread['id']])
+ url_for_thread = reverse('django_comment_client.forum.views.single_thread', args=[course_id, content['id']])
%>
% if type == "thread":
- ${content['title'] | h}
+ ${content['title'] | h}
% endif
%def>