Commit b4ae3abe by David Ormsbee

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

Make static tab url pattern less greedy
parents 6cd2a14b cc13b61e
...@@ -208,7 +208,7 @@ if settings.COURSEWARE_ENABLED: ...@@ -208,7 +208,7 @@ if settings.COURSEWARE_ENABLED:
) )
urlpatterns += ( urlpatterns += (
# This MUST be the last view in the courseware--it's a catch-all for custom tabs. # 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"), 'courseware.views.static_tab', name="static_tab"),
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment