Merge pull request #752 from MITx/feature/victor/less-greedy-urls

Make static tab url pattern less greedy
This commit is contained in:
David Ormsbee
2012-09-21 14:42:03 -07:00

View File

@@ -208,7 +208,7 @@ if settings.COURSEWARE_ENABLED:
)
urlpatterns += (
# This MUST be the last view in the courseware--it's a catch-all for custom tabs.
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/(?P<tab_slug>.*)$',
url(r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/(?P<tab_slug>[^/]+)/$',
'courseware.views.static_tab', name="static_tab"),
)