luci-base: ui: resolve aliases and rewrites on obtaining menu node children
authorJo-Philipp Wich <jo@mein.io>
Thu, 28 Apr 2022 14:06:25 +0000 (16:06 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 5 Dec 2022 09:43:14 +0000 (10:43 +0100)
commitfc759abeab1d80b6ba4b2d39ad4f61304832bb4f
tree402e3da48585ac48820bf4ba9e9f3c883201ad06
parent3a0a3c6feda488b41c7b9077e5898fc65362f126
luci-base: ui: resolve aliases and rewrites on obtaining menu node children

Extend LuCI.ui.menu.getChildren() to resolve aliases and rewrites prior to
returning the menu nodes. This allows aliasing entire menu trees instead of
just single pages.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 180d39dcd2427e3c32c0ec7ecc3c7bfb48c0d0ab)
modules/luci-base/htdocs/luci-static/resources/ui.js