mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 10:48:26 +00:00
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:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user