It is possible to write links without specifying the protocol, in this manner:
[This is a reference-style link][some-link]
[This is an inline-style link](//stackexchange.com)
[some-link]: //stackexchange.com
This gets inferred to https:
just fine, and is a little trick that helps save a few characters when you're bumping up against the character limit with a lot of links in your post. To illustrate how this works, all text links I've used in this post do this.
However, today I noticed the following validation was triggering when I went to edit a post for Arqade's screenshot of the week Hall of Fame. This is a post with over 50 links, 25 of which are images:
It looks like extra validation now wraps the image links, forcing one to specify the protocol. To be clear: the Hall of Fame post CURRENTLY uses images without protocols: if you attempt to edit it, the validation now prevents you from submitting it until you add the protocol in.
This was not the case as recently as December 2023. Given the timing, it looks like this bug was introduced as part of the Imgur migration, which concluded in April 2024.
I think having the validation trigger when an image URL starts with http
(or any other protocol like ftp
) makes sense, but if text links can be inferred as https
, I think image links should infer as well. In other words, the validation should not fail if the protocol is missing or removed.
https://arqade.com/u/1234
to link to users.https:
from an image URL was allowed.