Skip to content

Commit b3b1ff1

Browse files
Add redirects to Misc/NEWS bpo links (GH-91454) (#91895)
(cherry picked from commit 17dbb6b) Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Ezio Melotti <[email protected]>
1 parent 0638941 commit b3b1ff1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/tools/extensions/pyspecific.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,8 @@ def run(self):
417417
text = 'The NEWS file is not available.'
418418
node = nodes.strong(text, text)
419419
return [node]
420-
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/issue\1>`__',
420+
content = issue_re.sub(r'`bpo-\1 <https://bugs.python.org/'
421+
r'issue?@action=redirect&bpo=\1>`__',
421422
content)
422423
content = whatsnew_re.sub(r'\1', content)
423424
# remove first 3 lines as they are the main heading

0 commit comments

Comments
 (0)