diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp
index 0fbd2756..d8dc8719 100644
--- a/daemon/HTTPServer.cpp
+++ b/daemon/HTTPServer.cpp
@@ -1034,8 +1034,8 @@ namespace http {
}
s << "SUCCESS: Command accepted
\r\n";
s << "Back to commands list
\r\n";
- // s << "
You will be redirected in 5 seconds"; - // res.add_header("Refresh", "5; url=/?page=commands"); + s << "
You will be redirected in 5 seconds"; + res.add_header("Refresh", std::string("5; url=" + url.path + "?page=commands").c_str()); } void HTTPConnection::SendReply (HTTPRes& reply, std::string& content)