FIX redirect after restart panel

This commit is contained in:
Hamidreza Ghavami
2023-05-21 06:08:03 +04:30
parent 9c170fda26
commit 15fdb58433

View File

@@ -426,7 +426,12 @@
if (msg.success) {
this.loading(true);
await PromiseUtil.sleep(5000);
window.location.replace(this.allSetting.webBasePath + "xui/settings");
let protocol = "http://";
if (this.allSetting.webCertFile !== "") {
protocol = "https://";
}
const { host, pathname } = window.location;
window.location.replace(protocol + host + this.allSetting.webBasePath + pathname.slice(1));
}
},
async resetXrayConfigToDefault() {