Skip to content

Commit 4d00b04

Browse files
committed
Redirect /projects/ -> /dashboard/
1 parent 7fcdf5c commit 4d00b04

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

readthedocs/projects/urls/public.py

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Project URLS for public users."""
22

33
from django.conf.urls import url
4+
from django.views.generic.base import RedirectView
45

56
from readthedocs.builds import views as build_views
67
from readthedocs.constants import pattern_opts
@@ -10,6 +11,11 @@
1011

1112

1213
urlpatterns = [
14+
url(
15+
r'^$',
16+
RedirectView.as_view(pattern_name='projects_dashboard', permanent=True),
17+
name='projects_dashboard_redirect',
18+
),
1319
url(
1420
r'^(?P<invalid_project_slug>{project_slug}_{project_slug})/'.format(**pattern_opts),
1521
public.project_redirect,

0 commit comments

Comments
 (0)