]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add redirects to Misc/NEWS bpo links (#91454)
authorEzio Melotti <ezio.melotti@gmail.com>
Thu, 14 Apr 2022 14:06:01 +0000 (16:06 +0200)
committerGitHub <noreply@github.com>
Thu, 14 Apr 2022 14:06:01 +0000 (16:06 +0200)
Doc/tools/extensions/pyspecific.py

index 9fb54bc6041abd82754b5a6c22e688d7d3f95709..80533a97b1189025a2e7fb3b9ff7c0b211082b34 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