Skip to content

Commit

Permalink
add redirect from updates to blog/news
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahframe committed Aug 20, 2024
1 parent b960b75 commit d78788f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdhweb/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
# wagtail paths
path("cms/", include(wagtailadmin_urls)),
path("documents/", include(wagtaildocs_urls)),
re_path(r"updates/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[\w-]+)", BlogPostRedirectView.as_view(), name='updates-redirect'),
re_path(r"updates/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[\w-]+)", BlogPostRedirectView.as_view(), name='updates-redirect-with-date'),
path("updates/<slug>/", BlogPostRedirectView.as_view(), name='updates-redirect'),
]

Expand Down

0 comments on commit d78788f

Please sign in to comment.