Skip to content

Commit

Permalink
Redirect legacy community page (#2319)
Browse files Browse the repository at this point in the history
Use regular expression to redirect all legacy 'community-landing/' paths, including any children.
  • Loading branch information
dorian-adams committed Feb 21, 2024
1 parent f3fa1fc commit f88599b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pydotorg/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
name='account_change_password'),
path('accounts/', include('allauth.urls')),
path('box/', include('boxes.urls')),
re_path(r'^community-landing(/.*)?$', RedirectView.as_view(url='/community/', permanent=True)),
path('community/', include('community.urls', namespace='community')),
path('community/microbit/', TemplateView.as_view(template_name="community/microbit.html"), name='microbit'),
path('events/', include('events.urls', namespace='events')),
Expand Down

0 comments on commit f88599b

Please sign in to comment.