]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add redirects to Misc/NEWS bpo links (GH-91454) (#91895)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 May 2022 07:47:04 +0000 (00:47 -0700)
committerGitHub <noreply@github.com>
Tue, 10 May 2022 07:47:04 +0000 (09:47 +0200)
(cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Doc/tools/extensions/pyspecific.py

index 71ec09fd04701324a6f07ab6a0a1954ca765f8c5..cd9144ea09d3fcba1495b7d011b4aef76e07df89 100644 (file)
@@ -417,7 +417,8 @@ class MiscNews(Directive):
             text = 'The NEWS file is not available.'
             node = nodes.strong(text, text)
             return [node]
-        content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/issue\1>`__',
+        content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/'
+                               r'issue?@action=redirect&bpo=\1>`__',
                                content)
         content = whatsnew_re.sub(r'\1', content)
         # remove first 3 lines as they are the main heading