Send back to plain page when redirecting to the dashboard

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-05-26 20:20:13 +02:00
parent 6ab2f9fd40
commit 06e89c5781
2 changed files with 3 additions and 3 deletions

View File

@@ -26,8 +26,8 @@ function computeResponse(password, challenge) {
function redirect() {
// Login succeeded or not needed (empty password)
// Default: Send back to index.lp (dashboard)
var target = "index.lp";
// Default: Send back to dashboard
var target = ".";
// If DNS failure: send to Pi-hole diagnosis messages page
if ($("#dns-failure-label").is(":visible")) {

View File

@@ -100,7 +100,7 @@ function getData() {
})
.fail(function (data) {
apiFailure(data);
window.setTimeout(getData, 5*interval);
window.setTimeout(getData, 5 * interval);
});
}