Bugs item #3605596, was opened at 2013-02-21 16:42 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605596...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: redirect Group: None Status: Open Resolution: None Priority: 5 Private: Yes Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: 2 redirects on a page: all replaced, instead the first only
Initial Comment: English Wikipedia: If a redirect page contains more than one redirect, redirect.py - on handling redirects which point to other redirects - doesn't work correctly, see [[en:ANSCA]] (AvocatoBot uses redirect.py): all redirects will be replaced, only the first should.
Maybe, replacement (in redirect.py) of text = self.site.redirectRegex().sub( '#%s %s' % (self.site.redirect(), targetPage.title(asLink=True, textlink=True)), oldText) by text = self.site.redirectRegex().sub( '#%s %s' % (self.site.redirect(), targetPage.title(asLink=True, textlink=True)), oldText, count = 1) could correct the error.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605596...