From ced66a1590ecf7a964d64ff912c9963f8d08f9c6 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sun, 24 Sep 2023 09:59:07 +0300 Subject: [PATCH] Fix incorrect usingProxyHttps check --- Plan/react/dashboard/src/service/backendConfiguration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/react/dashboard/src/service/backendConfiguration.js b/Plan/react/dashboard/src/service/backendConfiguration.js index 8c40af106..551594b7b 100644 --- a/Plan/react/dashboard/src/service/backendConfiguration.js +++ b/Plan/react/dashboard/src/service/backendConfiguration.js @@ -7,7 +7,7 @@ const javaReplaced = { const isCurrentAddress = (address) => { let is = window.location.href.startsWith(address); - const usingProxyHttps = window.location.href.startsWith("https") && address.startsWith("http"); + const usingProxyHttps = window.location.href.startsWith("https") && !address.startsWith("https"); if (usingProxyHttps) { is = window.location.href.replace('https', '').startsWith(address.replace('http')); }