* Petr Kadlec <[email protected]> [Fri, 14 Aug 2009 13:28:32 +0200]:
> 2009/8/14 Dmitriy Sintsov <[email protected]>:
> > * Brion Vibber <[email protected]> [Thu, 13 Aug 2009 18:13:38
> -0700]:
> >> That's been deployed for a while, eg:
> >>
> >> <link rel="canonical" href="/wiki/Foobar" />
> >> at http://en.wikipedia.org/wiki/Foo
> >>
> > I haven't found such code in MediaWiki 54916 snapshot from SVN
>
> You were not looking closely enough. See
> 
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Article.php?revision=54916&view=markup
> (function showRedirectedFromHeader())
>
Why this is being added only for redirects? In one of my wiki (old v 
1.11) there's no such method showRedirectedFromHeader() in Article 
class. I've tried to add the canonical link with $WgOut->addLink() to 
Article::view(), then the canonical link is not being displayed for 
action=edit, for example. Then, placed it to Article::outputWikiText(), 
the same behavior. What's the proper place for this code in MediaWiki 
1.11?

Can't update that wiki (patched code and many exotic extensions) just 
yet.
Dmitriy

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to