From 8abb48273f28f99d72d9b8b4402363df57482e78 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 15 Jul 2017 03:26:56 -0700 Subject: [PATCH] Fix 'Redirect to HTTPS'. #885 --- src/main/Main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/Main.coffee b/src/main/Main.coffee index 206581fab..c0a06de0e 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -72,7 +72,7 @@ Main = items['previousversion'] = undefined ($.getSync or $.get) items, (items) -> if (items['Redirect to HTTPS'] ? Conf['Redirect to HTTPS']) and location.protocol isnt 'https:' - location.protocol = 'https:' + location.replace('https:' + location.host + location.pathname + location.search + location.hash) return $.asap docSet, ->