summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-05-09 21:05:14 -0700
committerGitHub <noreply@github.com>2022-05-10 00:05:14 -0400
commit5da1197d51871cc7bb97a0de4d9bf99664579671 (patch)
tree555333b895aa17aa294b3459045f5c7804457928
parent6fd61c96c33c2ebb008abfc843560c4a2f4f0d46 (diff)
downloadcpython-git-5da1197d51871cc7bb97a0de4d9bf99664579671.tar.gz
Add redirects to Misc/NEWS bpo links (GH-91454) (GH-91894)
(cherry picked from commit 17dbb6bc10ca8a8b602335414c047294f00afcbe) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
-rw-r--r--Doc/tools/extensions/pyspecific.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py
index 4dd1786198..37e2a696cf 100644
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -313,7 +313,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