redirect bugfix

This commit is contained in:
ccd0 2014-07-14 20:06:24 -07:00
parent 32200fa18a
commit a952321973

View File

@ -77,7 +77,7 @@ Redirect =
"#{Redirect.protocol archive}#{archive.domain}/#{path}" "#{Redirect.protocol archive}#{archive.domain}/#{path}"
navigate: (URL, alternative) -> navigate: (URL, alternative) ->
if ( if URL and (
/^https:\/\//.test(URL) or /^https:\/\//.test(URL) or
location.protocol is 'http:' or location.protocol is 'http:' or
confirm "Redirect to #{URL}?\n\nYour connection will not be encrypted." confirm "Redirect to #{URL}?\n\nYour connection will not be encrypted."