modules/admin-full: switch back to alias() for / -> /admin/; chained firstchild(...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Oct 2011 03:04:18 +0000 (03:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 26 Oct 2011 03:04:18 +0000 (03:04 +0000)
modules/admin-full/luasrc/controller/admin/index.lua

index 3448489..4e83252 100644 (file)
@@ -17,7 +17,7 @@ module("luci.controller.admin.index", package.seeall)
 function index()
        local root = node()
        if not root.target then
-               root.target = firstchild()
+               root.target = alias("admin")
                root.index = true
        end