Skip to content

Commit

Permalink
Fix incorrect usingProxyHttps check
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraLS3 committed Sep 24, 2023
1 parent d6e90d3 commit ced66a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plan/react/dashboard/src/service/backendConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down

0 comments on commit ced66a1

Please sign in to comment.