From a9523219738eb77f7f7cd07e6bd61c52ce24f6c3 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 14 Jul 2014 20:06:24 -0700 Subject: [PATCH] redirect bugfix --- src/Archive/Redirect.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Archive/Redirect.coffee b/src/Archive/Redirect.coffee index 03c283ad2..932e77ad9 100755 --- a/src/Archive/Redirect.coffee +++ b/src/Archive/Redirect.coffee @@ -77,7 +77,7 @@ Redirect = "#{Redirect.protocol archive}#{archive.domain}/#{path}" navigate: (URL, alternative) -> - if ( + if URL and ( /^https:\/\//.test(URL) or location.protocol is 'http:' or confirm "Redirect to #{URL}?\n\nYour connection will not be encrypted."