List of steps to reproduce (step by step, including full links if applicable):
- Go to Special:Whatlinkshere from an affected page and use the namespace filter to see only the backlinks from that namespace. There are pages from other namespaces are shown
- Example: https://de.wikipedia.org/w/index.php?title=Spezial%3ALinkliste&target=Datei%3AAfrica_%28orthographic_projection%29.svg&namespace=2
What happens?:
- It's filter is on user namespace, but shows the article https://de.wikipedia.org/wiki/Liste_der_Ramsar-Gebiete_in_Mauritius - according to the history it was moved while bad LinksUpdate code was active. The code was reverted as part of T299244
What should have happened instead?:
While looking at the issue from T299244 I have also seen that the column il_from_namespace is not updated for cross namespace moves
You can find affected files on replica by:
select distinct il_to, page_namespace as correct, il_from_namespace as wrong from page inner join imagelinks on page_id = il_from and page_namespace <> il_from_namespace;
185 rows in set (30.40 sec) for dewiki
But it seems there are also pages not broken by the current issue, there are looking older (no current move in history/log)
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.: