jayvdb added a subscriber: jayvdb.
jayvdb added a comment.

In https://phabricator.wikimedia.org/T85711#1040435, @XZise wrote:

> Another uncertainty with that option would be what is going to happen when 
> the software allows double redirects. Do we want to add a third option which 
> returns the target which would be chosen by the software? How would we set 
> that option? The chance is probably low as the software is already aware of 
> multiple redirects so there seems to be no complication with following them. 
> Does someone know if they will never support it or if they haven't got to it?


MediaWiki does allow more than one redirect to work correctly.  This is 
disabled on Wikimedia wikis and by default.  I have seen a few wikis which 
change this, to reduce needless maintenance.
https://www.mediawiki.org/wiki/Manual:$wgMaxRedirects

Also note that hard redirects (special pages and interwiki redirects) also work 
correctly on some wikis.  We have made this to be an exception, as this is 
disabled on Wikimedia wikis and by default.  I dont recall ever seeing this 
setting changed.
https://www.mediawiki.org/wiki/Manual:$wgDisableHardRedirects

I doubt either are exposed via the API.
However both *might* be easy to feature detect by giving a sample redirect 
wikitext to `action=parse` to determine what the server does with the output.


TASK DETAIL
  https://phabricator.wikimedia.org/T85711

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: XZise, jayvdb
Cc: jayvdb, Xqt, Aklapper, pywikibot-bugs-list, XZise, Malyacko, P.Copp



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

Reply via email to