Page MenuHomePhabricator

Opening a redirect with a webbrowser in replace-py will follow the redirect
Closed, ResolvedPublicBUG REPORT

Description

Call py -3.13 -m pwb -simulate replace -page:foobar a b and select 'b' for browser

>>> Foobar <<<
@@ -1 +1 @@
- #REDIRECT [[Fubar]]
+ #REDIRECT [[Fubbr]]

Do you want to accept these changes? ([y]es, [N]o, [e]dit original, edit
[l]atest, open in [b]rowser, [m]ore context, [a]ll, [q]uit): b

Fubar is opened instead of Foobar as requested

Event Timeline

Xqt changed the task status from Open to In Progress.Mar 30 2025, 1:55 PM
Xqt claimed this task.
Xqt triaged this task as Medium priority.
Xqt changed the subtype of this task from "Task" to "Bug Report".

Change #1132169 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] bugfix: no longer follow redirects when the browser is opened

https://gerrit.wikimedia.org/r/1132169

Change #1132169 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] no longer follow redirects when the browser is opened

https://gerrit.wikimedia.org/r/1132169