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:
parent
09d5de617c
commit
ec8cf9e83c
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ function build_pagetree() {
|
|||
}
|
||||
|
||||
node.children ??= {};
|
||||
node.children[s[0]] ??= {};
|
||||
node.children[s[0]] ??= { satisfied: true };
|
||||
node = node.children[s[0]];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue