* Aryeh Gregor Simetrical+wikilist@gmail.com [Tue, 25 Aug 2009 09:35:25 -0400]:
On Tue, Aug 25, 2009 at 4:24 AM, Dmitriy Sintsovquestpc@rambler.ru wrote:
Why this is being added only for redirects?
What else should it be added for?
For every invocation of the same article with any action that produces HTML output.
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 purpose would a canonical link serve on action=edit?
Wouldn't the action=edit be indexed by robots when we have no proper robots.txt? Or, there will be meta noindex, nofollow in the head of such page? Anyway, it seems that Yandex crawler doesn't like the meta noindex rules in the header of the page, giving an error (warning) message in the stats of their webmaster tools. I've thought that the purpose of canonical link is to threat the multiple actions of the page as the single page to the web indexer, thus, improving the ranks.
What's the proper place for this code in MediaWiki 1.11?
It's unlikely anyone else is going to spend time hunting through nearly two-year-old code for you. Two-year-old code which, by the way, very possibly has known, unpatched security vulnerabilities, since it hasn't been supported in a year or so. If you're not willing to upgrade for whatever reason, you'll probably have to figure this kind of thing out yourself.
I am willing to upgrade, just not yet. It's not my fault that the wiki wasn't upgraded for such long time - I work with it only recently. My other wikis run 1.14.1 Yes, it uses some custom made extensions which aren't in SVN nor www.mediawiki.org. I'll try to figure out myself, of course. Dmitriy