http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9531
Revision: 9531 Author: xqt Date: 2011-09-18 16:53:51 +0000 (Sun, 18 Sep 2011) Log Message: ----------- do not use default redirect tag, fix for bug #3404473
Modified Paths: -------------- trunk/pywikipedia/redirect.py
Modified: trunk/pywikipedia/redirect.py =================================================================== --- trunk/pywikipedia/redirect.py 2011-09-18 16:32:57 UTC (rev 9530) +++ trunk/pywikipedia/redirect.py 2011-09-18 16:53:51 UTC (rev 9531) @@ -656,7 +656,7 @@ pywikibot.output(u"Bad Title Error") break text = self.site.redirectRegex().sub( - '#%s %s' % (self.site.redirect(True), + '#%s %s' % (self.site.redirect(), targetPage.title(asLink=True, textlink=True)), oldText) if text == oldText: