From 55d38dfa48cadd37e6aad538c5758727e226f532 Mon Sep 17 00:00:00 2001 From: Hamidreza Ghavami Date: Mon, 8 May 2023 19:15:33 +0430 Subject: [PATCH] [FIX] bug logout path --- web/html/xui/settings.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index 58b3737e..8463ee80 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -335,7 +335,7 @@ this.loading(false); if (msg.success) { this.user = {}; - window.location.replace("/logout") + window.location.replace(basePath + "logout") } }, async restartPanel() { @@ -369,7 +369,7 @@ const msg = await HttpUtil.post("/xui/setting/updateUserSecret", this.user); if (msg.success) { this.user = msg.obj; - window.location.replace("/logout") + window.location.replace(basePath + "logout") } this.loading(false); await this.updateAllSetting();