Browse Source

FIX restart redirect :)

Hamidreza Ghavami 1 year ago
parent
commit
3825e36ef7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web/html/xui/settings.html

+ 2 - 2
web/html/xui/settings.html

@@ -527,8 +527,8 @@
                     if (this.allSetting.webCertFile !== "") {
                         protocol = "https://";
                     }
-                    const { host, pathname } = window.location;
-                    window.location.replace(protocol + host + this.allSetting.webBasePath + pathname.slice(1));
+                    const { host } = window.location;
+                    window.location.replace(protocol + host + this.allSetting.webBasePath + "panel/settings");
                 }
             },
             async fetchUserSecret() {