Some wikis have a script like
https://en.wikipedia.org/wiki/MediaWiki:Common.js/secure_new.js that rewrites http to https if you logged in as https, but it is not available in all wikis.
On September 3 was scheduled to enable HTTPS for all user logins. On wiki you can use a relative URL //commons.wikimedia.org. Off wiki it is better to use https://commons...
Vicenç
From: emijrp@gmail.com
Date: Thu, 5 Sep 2013 22:05:17 +0200
To: wikilovesmonuments@lists.wikimedia.org
Subject: Re: [Wiki Loves Monuments] Use https when linking to any Wikimedia site
_______________________________________________
Wiki Loves Monuments mailing list
WikiLovesMonuments@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikilovesmonuments
http://www.wikilovesmonuments.org