[Mediawiki-l] multiple redir

Rick DeNatale rick.denatale at gmail.com
Wed Aug 31 13:25:38 UTC 2005


On 8/31/05, Thomas Koll <tomk32 at gmx.de> wrote:
> 
> 
> Am 31.08.2005 um 09:44 schrieb jdd:
> 
> > after some tests, it seems that #redirect works only once (1.5)
> > …
> > is that what is wanted ?
> 
> Absolutely. Imagine:
> 
> Article A -> Art. B -> Art. C -> Article A
> 
> Of course it's easy to prevent such loops by remembering where the
> redirect started
> but for reasons of performance MediaWiki decides for the simple way of
> allowing only one redirect.


Actually not THAT easy, consider:

Article A -> Art. B -> Art C -> Art. B

To detect a cycle each 'new' article in the cycle needs to be checked 
against all previously visited articles.


More information about the MediaWiki-l mailing list