From b576fe9d61ebd778c5e4b66128b1fcaa26d143bd Mon Sep 17 00:00:00 2001 From: GRCR13 <78537712+GRCR13@users.noreply.github.com> Date: Sun, 10 May 2026 21:44:18 +0300 Subject: [PATCH] Update BackupModal.vue add base path to importDB API call --- frontend/src/pages/index/BackupModal.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/index/BackupModal.vue b/frontend/src/pages/index/BackupModal.vue index a7a9fc4f..4acfaafa 100644 --- a/frontend/src/pages/index/BackupModal.vue +++ b/frontend/src/pages/index/BackupModal.vue @@ -20,7 +20,7 @@ function exportDb() { // The Go endpoint streams x-ui.db as a download. Setting // window.location triggers a browser download without leaving // the page (the Go side responds with Content-Disposition: attachment). - window.location = '/panel/api/server/getDb'; + window.location = window.__X_UI_BASE_PATH__+'panel/api/server/getDb'; } function importDb() {