From e6ad3bf4574bd26ef591045942861a0dc3e113e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 8 Sep 2024 19:27:44 +0200 Subject: [PATCH] Restore legacy shortcuts to doc/security pages --- weechat/doc/urls.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/weechat/doc/urls.py b/weechat/doc/urls.py index 6d408b94..427aef76 100644 --- a/weechat/doc/urls.py +++ b/weechat/doc/urls.py @@ -66,6 +66,13 @@ view_doc_link), # /doc/user/en re_path(rf'^(?P{LEGACY_DOC})/(?P[a-z][a-z])/$', view_doc_link), + # /doc/security + re_path(r'^security/(?PWSA-[0-9]{4}-[0-9]+)/$', + view_security_wsa, name='doc_project_security_wsa'), + re_path(r'security/version/$', view_security_version, + name='doc_project_security_versions'), + re_path(r'security/version/(?P[0-9.]+)/$', + view_security_version, name='doc_project_security_version'), # shortcuts # /doc/weechat/stable/user