While browsing stackoverflow I have noticed multiple broken links to the ruby-doc.org website.
Example 2(First link)
In the first example the original link is http://www.ruby-doc.org/core-2.1.3/Kernel.html#method-i-rand
but after opening it in my browser is becomes : https://ruby-doc.org/https://ruby-doc.org//core-2.1.3/Kernel.html#method-i-rand
and I get this error message:
We're sorry, but that page cannot be found.
Removing the additional part the browser adds (the double https://ruby-doc.org/ in the link) or adding an s
before the http
part of the link before accessing the link solves the issue. But I think this might be a global problem because because ruby-docs.org have a secure protocol now (not sure that's the reason, just guessing). I'm getting the same result in both Firefox and Chrome.
I can not edit these questions since it's only a single character that's broken, yet it causes a lot of answers to be invalid.
Edit: The first link seems to be fixed meanwhile, but I'm not sure if that's the solution to the issue as it seems global, not just related to a single question.
http://www.ruby-doc.org/core-2.1.3/Kernel.html#method-i-rand
redirects tohttps://ruby-doc.org//core-2.1.3/Kernel.html#method-i-rand
now. Looks like they noticed the issue. I do see there is two slashes at the beginning. – Kyle K Aug 17 '19 at 23:33