ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
753 stars 137 forks source link

Don't assume http, generate protocol-relative URIs #56

Closed redneb closed 9 years ago

redneb commented 10 years ago

Currently, both hoogle and hackage are available via https. One issue is that when I use the https version of hoogle to search for something, it returns results from the http version of hackage. This can be fixed very easily; instead of producing URIs of the form

http://hackage.haskell.org/packages/archive/base/latest/doc/html/Prelude.html#v:map

it should produce a "protocol-relative URI":

//hackage.haskell.org/packages/archive/base/latest/doc/html/Prelude.html#v:map
hdgarrood commented 9 years ago

Since Hackage allows HTTPS, why not just always link to the HTTPS version?

ndmitchell commented 9 years ago

I remember those crazy days in early 2014 when the idea of accessing your Haskell documentation via https just seemed like overkill. Of course, given the intervening year, everything should be https only where available.

ndmitchell commented 9 years ago

Done, I also followed all redirects on the pages I was linking too.