From 7ad099dc801e1624dbde9054392324ed69ad78e1 Mon Sep 17 00:00:00 2001 From: "Adrian A. Baumann" Date: Wed, 24 Jun 2026 00:22:45 +0200 Subject: [PATCH] Redirect to root after handling configuration changes --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 619a6de..4c7dd0d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -582,7 +582,8 @@ static void handleConfig() { if (mqttClient.connected()) mqttClient.disconnect(); mqttReconnectAt = 0; - handleRoot(); + server.sendHeader("Location", "/", true); + server.send(303); } static void handleSet() {