We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fcdf5c commit 4d00b04Copy full SHA for 4d00b04
readthedocs/projects/urls/public.py
@@ -1,6 +1,7 @@
1
"""Project URLS for public users."""
2
3
from django.conf.urls import url
4
+from django.views.generic.base import RedirectView
5
6
from readthedocs.builds import views as build_views
7
from readthedocs.constants import pattern_opts
@@ -10,6 +11,11 @@
10
11
12
13
urlpatterns = [
14
+ url(
15
+ r'^$',
16
+ RedirectView.as_view(pattern_name='projects_dashboard', permanent=True),
17
+ name='projects_dashboard_redirect',
18
+ ),
19
url(
20
r'^(?P<invalid_project_slug>{project_slug}_{project_slug})/'.format(**pattern_opts),
21
public.project_redirect,
0 commit comments