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 3448489044c726e5d4453f5381dfc568ea0dd89b..4e832529d9128bfd64430669b95cd6dd976d1c0d 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