luci-mod-freifunk: fix redirect url
authorYousong Zhou <yszhou4tech@gmail.com>
Mon, 7 May 2018 14:20:18 +0000 (22:20 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 7 May 2018 14:27:58 +0000 (22:27 +0800)
location.hostname lacks port info

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
modules/luci-mod-freifunk/htdocs/luci-static/flashing.html

index 43e51236d7bd00d60265ca7508b234b36367ab9a..f9e882ff304f8a4aaf660cf8a56a5f26e556a34e 100644 (file)
@@ -45,7 +45,7 @@
                        if( time_remaining <= 0 )
                        {
                                window.clearInterval(interval);
-                               location.href = 'http://' + location.hostname + '/';
+                               location.href = 'http://' + location.host + '/';
                        }
                        else
                        {