Bugs item #3605596, was opened at 2013-02-21 16:42
Message generated for change (Comment added) made by xqt
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605596&group_id=93107

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: xqt (xqt)
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.


----------------------------------------------------------------------

>Comment By: xqt (xqt)
Date: 2013-03-21 22:49

Message:
reopened per request on my talk page at en-wiki

----------------------------------------------------------------------

Comment By: xqt (xqt)
Date: 2013-03-09 03:22

Message:
It does not make any sense to have more than one redirect on a redirect
page. The given sampe should become a disambig page.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3605596&group_id=93107

_______________________________________________
Pywikipedia-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-bugs

Reply via email to