diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino
index 6070d8ac8..cbd52ccee 100644
--- a/sonoff/xdrv_01_webserver.ino
+++ b/sonoff/xdrv_01_webserver.ino
@@ -84,7 +84,7 @@ const char HTTP_SCRIPT_ROOT[] PROGMEM =
"eb('l1').innerHTML=s;"
"}"
"};"
- "x.open('GET','?m=1'+a,true);" // ?m related to WebServer->hasArg("m")
+ "x.open('GET','.?m=1'+a,true);" // ?m related to WebServer->hasArg("m")
"x.send();"
"lt=setTimeout(la,{a});" // Settings.web_refresh
"}"
@@ -103,13 +103,11 @@ const char HTTP_SCRIPT_WIFI[] PROGMEM =
"}";
const char HTTP_SCRIPT_RELOAD[] PROGMEM =
- "setTimeout(function(){location.href='.';}," STR(HTTP_RESTART_RECONNECT_TIME) ");"
- "";
+ "setTimeout(function(){location.href='.';}," STR(HTTP_RESTART_RECONNECT_TIME) ");";
// Local OTA upgrade requires more time to complete cp: before web ui should be reloaded
const char HTTP_SCRIPT_RELOAD_OTA[] PROGMEM =
- "setTimeout(function(){location.href='.';}," STR(HTTP_OTA_RESTART_RECONNECT_TIME) ");"
- "";
+ "setTimeout(function(){location.href='.';}," STR(HTTP_OTA_RESTART_RECONNECT_TIME) ");";
const char HTTP_SCRIPT_CONSOL[] PROGMEM =
"var sn=0;" // Scroll position
@@ -348,7 +346,7 @@ const char HTTP_FORM_WIFI[] PROGMEM =
"
" D_AP1_PASSWORD "
"
"" D_AP2_SSID " (" STA_SSID2 ")
"
"" D_AP2_PASSWORD "
"
- "" D_HOSTNAME " (" WIFI_HOSTNAME ")
";
+ "" D_HOSTNAME " (" WIFI_HOSTNAME ")
";
const char HTTP_FORM_LOG1[] PROGMEM =
"