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, ->