From 721a913b73dfd118071429f3c678f0dfda84a68a Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 1 May 2018 15:32:03 -0700 Subject: [PATCH] Fix issue with HTTPS Redirect. #1876 --- 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 5fee2a108..0799836cb 100644 --- a/src/main/Main.coffee +++ b/src/main/Main.coffee @@ -78,7 +78,7 @@ Main = items['previousversion'] = undefined ($.getSync or $.get) items, (items) -> if !$.perProtocolSettings and /\.4chan\.org$/.test(location.hostname) and (items['Redirect to HTTPS'] ? Conf['Redirect to HTTPS']) and location.protocol isnt 'https:' - location.replace('https:' + location.host + location.pathname + location.search + location.hash) + location.replace('https://' + location.host + location.pathname + location.search + location.hash) return $.asap docSet, ->