Add /libraries/x.x.x redirect (#1937) (#1949)

This commit is contained in:
daveoconnor
2025-10-08 14:48:45 -07:00
committed by GitHub
parent 724ece3ab9
commit 2b392f8538
4 changed files with 112 additions and 13 deletions

View File

@@ -387,6 +387,11 @@ urlpatterns = (
),
]
+ [
path(
"libraries/<str:requested_version>/",
RedirectToLibrariesView.as_view(),
name="redirect-to-library-list-view",
),
# Redirects for old boost.org urls.
re_path(
r"^libs/(?P<libname>[^/]+)/(?P<path>.*)/?$",