diff --git a/web/html/index.html b/web/html/index.html
index 422b79a9..e9bca8af 100644
--- a/web/html/index.html
+++ b/web/html/index.html
@@ -857,7 +857,7 @@ ${dateTime}
backupModal.show();
},
exportDatabase() {
- window.location = basePath + '/panel/api/server/getDb';
+ window.location = basePath.replace(/\/$/, '') + '/panel/api/server/getDb';
},
importDatabase() {
const fileInput = document.createElement('input');