Page MenuHomePhabricator

Don't follow redirects outside namespace
Closed, ResolvedPublic

Description

Sometimes redirect targets are moved outside the current namespace and the redirect source points to a deleted page. Instead of fixing the redirect target, the broken redirect should be deleted directly. See the following dialog:

>>> Doktorfrage von Livadia <<<
[[de:Doktorfrage von Livadia]] has been moved to [[de:Benutzer:Gabel1960/Livadia-Affäre]]
Summary - Korrigiere defekte Weiterleitung von Livadia-Affäre auf Verschiebeziel [[Benutzer:Gabel1960/Livadia-Affäre]]
@@ -1 +1 @@
- #WEITERLEITUNG [[Livadia-Affäre]]
+ #WEITERLEITUNG [[Benutzer:Gabel1960/Livadia-Affäre]]

Edit summary: Korrigiere defekte Weiterleitung von Livadia-Affäre auf Verschiebeziel [[Benutzer:Gabel1960/Livadia-Affäre]]
Do you want to accept these changes? ([y]es, [N]o, [a]ll, [q]uit): n
Redirect target [[Livadia-Affäre]] does not exist. Do you want to delete
[[Doktorfrage von Livadia]]? ([y]es, [N]o, [a]ll, [q]uit):

Event Timeline

Xqt changed the task status from Open to In Progress.Jun 10 2025, 11:49 AM
Xqt claimed this task.
Xqt triaged this task as Medium priority.

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

[pywikibot/core@master] IMPR: Don't fix broken redirects if namespace of source and target are different

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

Change #1155193 merged by jenkins-bot:

[pywikibot/core@master] IMPR: Don't fix broken redirects if namespace of source and target are different

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