Last modified: 2012-08-25 09:25:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T19550, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17550 - File description page should have rel="canonical" link tag if file is transcluded from Commons
File description page should have rel="canonical" link tag if file is transcl...
Status: RESOLVED INVALID
Product: Wikimedia
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/wiki/File:Med...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-18 09:04 UTC by Melancholie
Modified: 2012-08-25 09:25 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Melancholie 2009-02-18 09:04:41 UTC
Like redirects, also a file description page should have the new rel="canonical" link tag if the file is transcluded from Commons.

http://en.wikipedia.org/wiki/File:Mediawiki.png should contain inside <head>:

<link rel="canonical" href="http://commons.wikimedia.org/wiki/File:Mediawiki.png" />
Comment 1 Melancholie 2009-02-18 09:06:36 UTC
Forget about it ;-)
<meta name="robots" content="noindex,nofollow" />
Comment 2 Brion Vibber 2009-02-18 19:52:35 UTC
That appears to be an unintentional regression in r30602 due to overzealous search-and-replace. Previously, the code set "index,follow" for an Image: page view if the image existed but the page didn't.
Comment 3 Brion Vibber 2009-02-18 19:55:49 UTC
Looks like this wouldn't work anyway, as it would need to link across domains which would not be accepted:

http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html

"Can this link tag be used to suggest a canonical URL on a completely different domain?
No. To migrate to a completely different domain, permanent (301) redirects are more appropriate. Google currently will take canonicalization suggestions into account across subdomains (or within a domain), but not across domains. So site owners can suggest www.example.com vs. example.com vs. help.example.com, but not example.com vs. example-widgets.com."

Reopen if this changes...
Comment 4 Nemo 2012-08-25 09:25:52 UTC
(In reply to comment #3)
> Reopen if this changes...

Marking fixed: this changed http://googlewebmastercentral.blogspot.it/2009/12/handling-legitimate-cross-domain.html and I see the requested tag in the example file page.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links