mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-01 03:43:01 +00:00
Fix panel redirect logic
This commit is contained in:
parent
1e5e1ff0b9
commit
5d84ed255d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue