Skip to content

Commit f88599b

Browse files
authored
Redirect legacy community page (#2319)
Use regular expression to redirect all legacy 'community-landing/' paths, including any children.
1 parent f3fa1fc commit f88599b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pydotorg/urls.py

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
name='account_change_password'),
5555
path('accounts/', include('allauth.urls')),
5656
path('box/', include('boxes.urls')),
57+
re_path(r'^community-landing(/.*)?$', RedirectView.as_view(url='/community/', permanent=True)),
5758
path('community/', include('community.urls', namespace='community')),
5859
path('community/microbit/', TemplateView.as_view(template_name="community/microbit.html"), name='microbit'),
5960
path('events/', include('events.urls', namespace='events')),

0 commit comments

Comments
 (0)