Redirect to root on empty path
Redirect to root on empty path

* Prevents an empty Location header
* Useful in environments where build_url() could return an empty string (such as http server rewrites requests to /cgi-bin/luci)

Signed-off-by: Joel Pedraza <64b2b6d12bfe4baae7dad3d018f8cbf6b0e7a044@saik0.net>

tobiaswaldvogel/luci,shangjiyu/luci-with-extra,aa65535/luci,openwrt/luci,maxrio/luci981213,remakeelectric/luci,rogerpueyo/luci,cshore-firmware/openwrt-luci,hnyman/luci,shangjiyu/luci-with-extra,daofeng2015/luci,bittorf/luci,bittorf/luci,Wedmer/luci,ollie27/openwrt_luci,mumuqz/luci,Noltari/luci,remakeelectric/luci,Noltari/luci,lbthomsen/openwrt-luci,NeoRaider/luci,cshore/luci,Noltari/luci,Noltari/luci,mumuqz/luci,nmav/luci,ollie27/openwrt_luci,daofeng2015/luci,Wedmer/luci,mumuqz/luci,tobiaswaldvogel/luci,daofeng2015/luci,daofeng2015/luci,maxrio/luci981213,oneru/luci,kuoruan/lede-luci,hnyman/luci,kuoruan/lede-luci,hnyman/luci,artynet/luci,Hostle/luci,jlopenwrtluci/luci,LuttyYang/luci,chris5560/openwrt-luci,cshore-firmware/openwrt-luci,wongsyrone/luci-1,jlopenwrtluci/luci,ollie27/openwrt_luci,bittorf/luci,Wedmer/luci,aa65535/luci,openwrt/luci,teslamint/luci,cappiewu/luci,wongsyrone/luci-1,maxrio/luci981213,rogerpueyo/luci,cshore-firmware/openwrt-luci,chris5560/openwrt-luci,lbthomsen/openwrt-luci,remakeelectric/luci,cshore-firmware/openwrt-luci,cshore/luci,rogerpueyo/luci,wongsyrone/luci-1,mumuqz/luci,jlopenwrtluci/luci,taiha/luci,chris5560/openwrt-luci,aa65535/luci,taiha/luci,Noltari/luci,teslamint/luci,tobiaswaldvogel/luci,bright-things/ionic-luci,remakeelectric/luci,oneru/luci,artynet/luci,maxrio/luci981213,urueedi/luci,chris5560/openwrt-luci,cshore-firmware/openwrt-luci,daofeng2015/luci,Wedmer/luci,kuoruan/luci,cshore-firmware/openwrt-luci,wongsyrone/luci-1,taiha/luci,oneru/luci,openwrt-es/openwrt-luci,openwrt-es/openwrt-luci,aa65535/luci,bright-things/ionic-luci,aa65535/luci,bittorf/luci,mumuqz/luci,remakeelectric/luci,kuoruan/lede-luci,tobiaswaldvogel/luci,nmav/luci,bright-things/ionic-luci,cappiewu/luci,kuoruan/lede-luci,bright-things/ionic-luci,981213/luci-1,teslamint/luci,nmav/luci,LuttyYang/luci,mumuqz/luci,cshore-firmware/openwrt-luci,hnyman/luci,openwrt-es/openwrt-luci,rogerpueyo/luci,bittorf/luci,artynet/luci,kuoruan/luci,teslamint/luci,bittorf/luci,981213/luci-1,kuoruan/luci,ollie27/openwrt_luci,kuoruan/lede-luci,urueedi/luci,kuoruan/lede-luci,bright-things/ionic-luci,mumuqz/luci,maxrio/luci981213,openwrt-es/openwrt-luci,openwrt/luci,cappiewu/luci,NeoRaider/luci,nmav/luci,cshore/luci,wongsyrone/luci-1,chris5560/openwrt-luci,urueedi/luci,chris5560/openwrt-luci,cshore/luci,artynet/luci,shangjiyu/luci-with-extra,cappiewu/luci,nmav/luci,remakeelectric/luci,openwrt-es/openwrt-luci,kuoruan/luci,cappiewu/luci,aa65535/luci,nmav/luci,remakeelectric/luci,LuttyYang/luci,oneru/luci,bright-things/ionic-luci,wongsyrone/luci-1,daofeng2015/luci,981213/luci-1,teslamint/luci,openwrt-es/openwrt-luci,Hostle/luci,jlopenwrtluci/luci,cappiewu/luci,rogerpueyo/luci,tobiaswaldvogel/luci,remakeelectric/luci,Hostle/luci,nmav/luci,Hostle/luci,jlopenwrtluci/luci,wongsyrone/luci-1,981213/luci-1,Noltari/luci,cappiewu/luci,cshore-firmware/openwrt-luci,oneru/luci,maxrio/luci981213,cshore/luci,cshore/luci,Hostle/luci,rogerpueyo/luci,LuttyYang/luci,ollie27/openwrt_luci,lbthomsen/openwrt-luci,taiha/luci,LuttyYang/luci,openwrt/luci,kuoruan/luci,shangjiyu/luci-with-extra,taiha/luci,aa65535/luci,LuttyYang/luci,taiha/luci,Wedmer/luci,urueedi/luci,daofeng2015/luci,artynet/luci,rogerpueyo/luci,NeoRaider/luci,lbthomsen/openwrt-luci,oneru/luci,teslamint/luci,daofeng2015/luci,jlopenwrtluci/luci,mumuqz/luci,artynet/luci,artynet/luci,NeoRaider/luci,openwrt/luci,rogerpueyo/luci,lbthomsen/openwrt-luci,openwrt-es/openwrt-luci,hnyman/luci,NeoRaider/luci,oneru/luci,Noltari/luci,maxrio/luci981213,ollie27/openwrt_luci,NeoRaider/luci,jlopenwrtluci/luci,Noltari/luci,taiha/luci,Noltari/luci,kuoruan/luci,openwrt/luci,openwrt/luci,nmav/luci,Wedmer/luci,bright-things/ionic-luci,Hostle/luci,kuoruan/luci,artynet/luci,NeoRaider/luci,981213/luci-1,981213/luci-1,tobiaswaldvogel/luci,NeoRaider/luci,shangjiyu/luci-with-extra,bright-things/ionic-luci,Wedmer/luci,ollie27/openwrt_luci,lbthomsen/openwrt-luci,cappiewu/luci,hnyman/luci,lbthomsen/openwrt-luci,Hostle/luci,tobiaswaldvogel/luci,ollie27/openwrt_luci,cshore/luci,bittorf/luci,kuoruan/lede-luci,taiha/luci,shangjiyu/luci-with-extra,LuttyYang/luci,shangjiyu/luci-with-extra,bittorf/luci,chris5560/openwrt-luci,LuttyYang/luci,hnyman/luci,openwrt-es/openwrt-luci,tobiaswaldvogel/luci,chris5560/openwrt-luci,artynet/luci,urueedi/luci,urueedi/luci,lbthomsen/openwrt-luci,urueedi/luci,wongsyrone/luci-1,Hostle/luci,kuoruan/luci,teslamint/luci,981213/luci-1,aa65535/luci,openwrt/luci,kuoruan/lede-luci,urueedi/luci,maxrio/luci981213,shangjiyu/luci-with-extra,teslamint/luci,cshore/luci,hnyman/luci,Wedmer/luci,jlopenwrtluci/luci,oneru/luci,nmav/luci