Fix a case where "tags" is interpreted as a project slug
Assumption: There should not be a project named "tags"
Longer term this opens up a discussion about banned project names
@@ -16,6 +16,11 @@ urlpatterns = [
RedirectView.as_view(pattern_name='projects_dashboard', permanent=True),
name='projects_dashboard_redirect',
),
+ url(
+ r'^tags/(?P<tag>[-\w]+)/$',
+ ProjectTagIndex.as_view(),
+ name='projects_tag_detail',
+ ),
url(
r'^(?P<invalid_project_slug>{project_slug}_{project_slug})/'.format(**pattern_opts),
public.project_redirect,
@@ -82,9 +87,4 @@ urlpatterns = [
public.project_versions,
name='project_version_list',
),
- url(
- r'^tags/(?P<tag>[-\w]+)/$',
- ProjectTagIndex.as_view(),
- name='projects_tag_detail',
- ),
]
