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:
Jo-Philipp Wich 2023-08-21 09:24:32 +02:00
parent 09d5de617c
commit ec8cf9e83c

View file

@ -395,7 +395,7 @@ function build_pagetree() {
}
node.children ??= {};
node.children[s[0]] ??= {};
node.children[s[0]] ??= { satisfied: true };
node = node.children[s[0]];
}