Logout: fix redirect

Without this, we were getting into a loop with keep alive enabled
when using Firefox.

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2025-03-09 08:52:59 +02:00
parent e3ead702ce
commit 6c29d5dab8
3 changed files with 6 additions and 4 deletions

View File

@@ -463,12 +463,12 @@ function changeBulkDeleteStates(table) {
}
}
function doLogout() {
function doLogout(url) {
$.ajax({
url: apiUrl + "/auth",
method: "DELETE",
}).always(function () {
location.reload();
globalThis.location = url;
});
}