From 964356cbfb2dad48081d023c58c6dd3394319f00 Mon Sep 17 00:00:00 2001 From: David Skoland Date: Sun, 19 Nov 2023 20:57:06 +0100 Subject: [PATCH] fix URL in check_https --- webAO/master.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webAO/master.ts b/webAO/master.ts index 336fc5ff..fe980e20 100644 --- a/webAO/master.ts +++ b/webAO/master.ts @@ -76,8 +76,10 @@ fpPromise export function check_https() { if (protocol === 'https:') { + const newURL: string = window.location.href.replace('https:', 'http:'); document.getElementById('https_error').style.display = ''; - setTimeout(() => window.location.replace("http://web.aceattorneyonline.com/"), 5000); + console.log('HTTPS detected, redirecting to HTTP'); + setTimeout(() => window.location.replace(newURL), 5000); } }