]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91535)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 14 Apr 2022 15:02:03 +0000 (08:02 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Apr 2022 15:02:03 +0000 (17:02 +0200)
(cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe)

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

index 92fc5e7c71cd7d4dab20420d744d318611bcbbc9..7f505a1ede89a4c4b971d4ebac1929201b4a7ffa 100644 (file)
@@ -433,7 +433,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