diff options
| author | Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> | 2023-05-20 17:28:51 +0300 |
|---|---|---|
| committer | Hamidreza Ghavami <70919649+hamid-gh98@users.noreply.github.com> | 2023-05-20 17:28:51 +0300 |
| commit | c7e300f14d5fc8cb4d025892461a766fa8308562 (patch) | |
| tree | 2b64570153492c8dbc1564b7b4dc09d4f64e6374 /web/html/xui/settings.html | |
| parent | 419a1938ee51e011f079777e8b6ac83d908e5366 (diff) | |
FIX redirect after restart panel
Diffstat (limited to 'web/html/xui/settings.html')
| -rw-r--r-- | web/html/xui/settings.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index acff52f3..8f9e2b7b 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -480,7 +480,12 @@ if (msg.success) { this.loading(true); await PromiseUtil.sleep(5000); - window.location.replace(this.allSetting.webBasePath + "panel/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 fetchUserSecret() { |
