Salvete! I have discovered that a certain way of url encoding breaks the link. For the record %2f
represents the forward slash character: /
Now, consider this:
Original Link: http://dottech.org/95285/this-is-the-pacific-barreleye-a-fish-with-a-transparent-head-amazing-photo-of-the-day
javascript (encodeURIComponent
) urlencoded link: http://dottech.org%2f95285%2fthis-is-the-pacific-barreleye-a-fish-with-a-transparent-head-amazing-photo-of-the-day
Now, if you paste the encoded link into your browser's address bar, it is broken (Firefox, Chrome, IE).
However, if you don't url-encode the first forward slash, it works perfectly:
'http://dottech.org/95285%2fthis-is-the-pacific-barreleye-a-fish-with-a-transparent-head-amazing-photo-of-the-day
Why?