Bugs item #3315973, was opened at 2011-06-13 23:54
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=331597…
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: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: redirect.py sometimes categorizes double redirects
Initial Comment:
version:
Pywikipedia (r8725 (wikipedia.py) 2010/11/15, 08:44:06)
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)]
config-settings:
use_api = True
use_api_login = True
In class RedirectRobot, for fixing Special:DoubleRedirects please include capability to
detect if the final target page is in the Category namespace (ns:14) and in the case that
it returns true append a colon before replacing the appropriate target to avoid
categorizing the redirect itself.
E.g.:
>> Foo <<<
Links to:
[[Bar]].
Links to: [[Category:Foobar]].
- #REDIRECT [[Bar]]
+ #REDIRECT [[:Category:Foobar]]
^(and here is the extra colon)
Otherwise, [[Foo]] would be categorized in [[Category:Foobar]], which is not desirable.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=331597…