65

When you paste a link into the "Insert Hyperlink" box, it adds it automatically as a citation link:

[Example 1][1]

  [1]: http://example.com

But when you paste a link starting with a space , it tries to URL encode it, to change the space to %20, and then sticks a http:// on the front to make it a valid link:

[Example 2][2]

  [2]: http://%20http://example.com

This, however, means the link doesn't work.

enter image description here

Please could leading whitespace be stripped from the URL?

6
  • 1
    Unrelated but what tool did you use to make the gif? Was it a simple process? I'd be curious :-)
    – enderland
    Commented Jan 18, 2016 at 1:32
  • 1
    @enderland: I don't have idea about which tool Tim used. But there is a tool called Licecap can do the same.
    – Arulkumar
    Commented Jan 18, 2016 at 6:21
  • 9
    In case it's not obvious, there are a lot of people who use the "insert link" box and copy-paste in a link with a leading space. This leads to a large amount of broken links. See e.g. this SEDE query: data.stackexchange.com/stackoverflow/revision/688578/858478/… ... or this Stackoverflow query: stackoverflow.com/…
    – tripleee
    Commented Jun 27, 2017 at 9:32
  • 1
    @enderland Fwiw (old comment) I'm a huge fan of screentogif.com, myself. Also, regardless of tool used, if the gifs turn out too big another good post-processing workflow tool is ezgif.com/optimize.
    – Jason C
    Commented Jun 27, 2017 at 15:02
  • 1
    @enderland this was Peek for Ubuntu. LiceCap is excellent on Windows.
    – Tim
    Commented Jun 27, 2017 at 17:23
  • Hmm, I think I posted about this more recently, but the behavior is different now, yet still annoying meta.stackexchange.com/questions/382174/… It won't URL encode it, but will add https:// in front of the link, so you end up with https:// https://somelink
    – Timothy G.
    Commented Mar 16, 2023 at 14:10

0

You must log in to answer this question.

Browse other questions tagged .