Last modified: 2014-09-24 00:49:39 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 T11248, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9248 - Give MIME on links to image pages + Switch to disable image linking
Give MIME on links to image pages + Switch to disable image linking
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-10 22:22 UTC by Platonides
Modified: 2014-09-24 00:49 UTC (History)
4 users (show)

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


Attachments
Give MIME on image links + Switch to disable image linking (1.47 KB, patch)
2007-03-10 22:24 UTC, Platonides
Details

Description Platonides 2007-03-10 22:22:48 UTC
It is a fact that search engines perform badly with wiki images, as they don't
index pages on image: namespace, assuming it will be an image and not a html
description.

See Commons search engine ranking thread on commons-l
(http://permalink.gmane.org/gmane.org.wikimedia.commons/1289) for more info. The
engines approach is not bad per se (what do you think when you see a .jpg ended
url?) but we're not giving a different information. Thus we should tag the links
in images with the type attribute indicationg the mime of linked document, as it
is done with <style> and <script> (yes, type is a valid attribute of <a>)
http://permalink.gmane.org/gmane.org.wikimedia.commons/1323
Comment 1 Platonides 2007-03-10 22:24:40 UTC
Created attachment 3334 [details]
Give MIME on image links + Switch to disable image linking

Additionaly, this patch also provides a $wgLinkToImagePages setting to disable
links on images: http://permalink.gmane.org/gmane.org.wikimedia.mediawiki/18381
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-03-11 00:15:26 UTC
Bug 4421 would also solve this (and probably more reliably, since it seems not improbable that 
search engines won't bother with the type attribute).
Comment 3 Brion Vibber 2007-03-12 15:04:08 UTC
(Note that at least Google has already fixed this particular problem and indexes
our image pages just fine.)

Using the type field as an extra hint _does_ give me the warm fuzzies, though
I'm not sure it would actually get used by anything.

I'm also undecided on the option to remove the image links. Certainly it's
something that sometimes gets requested, but as a global I'm not so sure it's
great. Any thoughts?
Comment 4 Rob Church 2007-03-12 18:30:56 UTC
(In reply to comment #3)
> I'm also undecided on the option to remove the image links. Certainly it's
> something that sometimes gets requested, but as a global I'm not so sure it's
> great. Any thoughts?

Oooh, evil thoughts abound. I don't like the idea of having it in core, but I do
like the idea of expanding the idea a bit further so extensions can take advantage.

A link is to a namespace, regardless of the nature of the link. The parser ought
to "ask" the namespace in question how to render a link to itself - an image
link would go to some sort of ImageLinker, a normal namespace link, or a link
where there's no custom handler defined would exist as it does now.

This would move us nicely along the path of potentially introducing an extension
which could allow for multiple namespaces that behave like tags (I won't call
them "categories"), rather than just the one.
Comment 5 Sumana Harihareswara 2011-11-25 20:03:29 UTC
Comment on attachment 3334 [details]
Give MIME on image links + Switch to disable image linking

Marking patch obsolete since it doesn't apply cleanly to trunk, per automated testing: http://lists.wikimedia.org/pipermail/wikitech-l/2011-November/056340.html
Comment 6 Sumana Harihareswara 2011-11-25 20:20:57 UTC
Sorry, Platonides.  In the wait trunk changed such that your patch doesn't apply.  Any interest in revising?
Comment 7 Platonides 2011-12-06 21:47:46 UTC
I don't think I'll revisit it in the near future. If anyone wishes to work on it, can do so.
Comment 8 Bawolff (Brian Wolff) 2014-05-23 01:49:27 UTC
Given that google likes our images now, and that in all probability, nobody looks at a type attribute on an <a>, should this be wontfixed?

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


Navigation
Links