Fix panel redirect logic

This commit is contained in:
kr-ilya 2025-12-01 00:01:05 +03:00
parent 1e5e1ff0b9
commit 5d84ed255d

View file

@ -323,7 +323,9 @@
const newProtocol = (webCertFile || webKeyFile) ? "https:" : "http:";
if (!this.entryIsIP) {
const base = webBasePath ? webBasePath.replace(/^\//, "") : "";
const url = new URL(window.location.href);
url.pathname = `/${base}panel/settings`;
window.location.replace(url.toString());
return;
}