diff --git a/lms/djangoapps/django_comment_client/forum/urls.py b/lms/djangoapps/django_comment_client/forum/urls.py index 76957a82d8..974a0b2c7b 100644 --- a/lms/djangoapps/django_comment_client/forum/urls.py +++ b/lms/djangoapps/django_comment_client/forum/urls.py @@ -3,7 +3,7 @@ import django_comment_client.forum.views urlpatterns = patterns('django_comment_client.forum.views', url(r'users/(?P\w+)$', 'user_profile', name='user_profile'), - url(r'(?P\w+)/threads/(?P\w+)$', 'single_thread', name='single_thread'), - url(r'(?P\w+)/inline$', 'inline_discussion', name='inline_discussion'), + url(r'(?P[\w\-]+)/threads/(?P\w+)$', 'single_thread', name='single_thread'), + url(r'(?P[\w\-]+)/inline$', 'inline_discussion', name='inline_discussion'), url(r'', 'forum_form_discussion', name='forum_form_discussion'), )