mirror of
https://github.com/openwrt/luci.git
synced 2025-12-26 15:36:22 +04:00
luci-base: dispatcher.uc: satisfy auto-created intermediate nodes
When we auto-create intermediate parent nodes, make sure that those nodes are marked as satisfied, so that it is possible to dispatch their actual child nodes. This aligns the behavior with the old Lua based dispatcher implementation. Fixes: #6529 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -395,7 +395,7 @@ function build_pagetree() {
|
||||
}
|
||||
|
||||
node.children ??= {};
|
||||
node.children[s[0]] ??= {};
|
||||
node.children[s[0]] ??= { satisfied: true };
|
||||
node = node.children[s[0]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user