redirects to a page not updated after move


After a page move all redirects which a linking to the moved page have to be updated to the new target.

The problem is only visible with $wgMaxRedirects > 1, because than there a working redirects pointing to the page which are not updated after move and so the redirection is not working proper.

The update of the redirect table is missing.


Steps to reproduce:

  • set $wgMaxRedirects = 2;
  • create page A with text
  • move page A to page B with a redirect
  • move page B to page C with a redirect
  • visited page A, you get redirect to page B, not to page C
  • create page A2 with a redirect to page B (copy the wikitext from page A)
  • visited page A2, you get redirect to page C

Version: 1.20.x
Severity: normal

bzimport added a project: MediaWiki-Redirects.Via ConduitNov 21 2014, 11:51 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz30359.
Umherirrender created this task.Via LegacyAug 13 2011, 9:04 AM
Catrope added a comment.Via ConduitAug 13 2011, 11:45 AM

This is one of the reasons why I thought allowing multiple redirects was a bad idea.

However, we should NOT update the redirect table such that A->C, because that will break things if B is edited to be a redirect to D. Instead, the redirect table should continue saying A->B and B->C, and the redirect resolution code should follow both redirects rather than stopping after the first one.

Bawolff added a comment.Via ConduitMar 4 2012, 3:16 AM
  • Bug 33520 has been marked as a duplicate of this bug. ***
Markhurd added a subscriber: Markhurd.Via WebFeb 19 2015, 1:58 AM

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.