Last modified: 2014-02-12 19:22:15 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 T32682, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30682 - Link icon inconsistencies when using protocol relative URLs
Link icon inconsistencies when using protocol relative URLs
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://test.wikipedia.org/w/index.ph...
:
: 33269 (view as bug list)
Depends on:
Blocks: 20342
  Show dependency treegraph
 
Reported: 2011-09-01 14:20 UTC by The Evil IP address
Modified: 2014-02-12 19:22 UTC (History)
9 users (show)

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


Attachments

Description The Evil IP address 2011-09-01 14:20:53 UTC
Please note that the linking icon of links to exactly the same location might look completely different, depending on if they use protocol relative URLs or not. I don't know how (or if) to fix that, but wanted to let you know.
Comment 1 Roan Kattouw 2011-09-01 14:23:18 UTC
I don't understand what you mean. Could you provide an example or a screenshot?
Comment 2 The Evil IP address 2011-09-01 14:24:16 UTC
Added a URL.
Comment 3 Roan Kattouw 2011-09-05 18:05:09 UTC
Looking at the URL I get it now.

[http://foo.com Foo] and [//foo.com Foo] both get the normal external link icon (blue square with an arrow at a 45-degree angle), while [https://foo.com Foo] gets the secure link icon (lock). When viewed over HTTPS, the protocol-relative link and the HTTPS link will have the same target but a different icon.

I'm not sure this is at all fixable without causing cache pollution.
Comment 4 Seb35 2011-09-15 21:07:31 UTC
I’m not sure if it should be fixed, it depends of the interpretation of each symbol.

Previously (in all-http mode) the lock emphasized the link is in https (exception to the http standard protocol) and the blue arrow simply indicated a link.

Now in https, given external links are also used for internal links (link to action=edit for instance), fixing this bug would mean many locks would appear in https mode and I’m not sure it is desirable for internal external links (at least). It could also be argued that the blue arrow is a "normal" link and the lock has the special meaning of emphasizing an https link.

Else to solve this issue, a solution could be to have a special icon for protocol-relative links which would be different in http or https mode (special configuration of the server/Apache). It’s a bit complicated and not easily deployable/packageable, perhaps not possible. Or it could be indicated in mediawiki.org as a customization for sysadmins.
Comment 5 Derk-Jan Hartman 2011-10-05 15:43:15 UTC
inconsistent, but only because our usage of the links is not yet very much consistent yet.


It might help though, to deploy: r98690 to make it a BIT more consistent.
Comment 6 Roan Kattouw 2011-12-20 15:41:24 UTC
*** Bug 33269 has been marked as a duplicate of this bug. ***
Comment 7 Krinkle 2011-12-29 11:15:05 UTC
(In reply to comment #3)
> Looking at the URL I get it now.
> 
> [http://foo.com Foo] and [//foo.com Foo] both get the normal external link icon
> (blue square with an arrow at a 45-degree angle), while [https://foo.com Foo]
> gets the secure link icon (lock). When viewed over HTTPS, the protocol-relative
> link and the HTTPS link will have the same target but a different icon.
> 
> I'm not sure this is at all fixable without causing cache pollution.

We could serve a different icon per protocol on bits.wikimedia.org/..../icon_current_protocol.png :D

Just kidding, alternatively we could add a class to <html> in mediawiki.page.startup and use that in CSS for .mw-https > [href ^="//"]; Although that is cache friendly and not WMF specific and also works for dynamically  inserted links, it does mess with cascading system a little bit (in that overriding this with a different icon from somewhere else becomes less trivial and might break existing rules).
Comment 8 Hazard-SJ 2012-11-24 21:00:47 UTC
Hello, has any progress been made, I was about to report this and found that it was reported over a year ago, and there have been no comments for almost 11 months now.
Comment 9 Krinkle 2012-11-25 18:15:28 UTC
I've given a possible implementation. Feel free to implement it, someone.

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


Navigation
Links