From: Jo-Philipp Wich Date: Mon, 21 Aug 2023 07:24:32 +0000 (+0200) Subject: luci-base: dispatcher.uc: satisfy auto-created intermediate nodes X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=ec8cf9e83cd4e4afdf0a00910e057a890600e8a8;p=project%2Fluci.git 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 --- diff --git a/modules/luci-base/ucode/dispatcher.uc b/modules/luci-base/ucode/dispatcher.uc index 7ff34afba9..f42155d539 100644 --- a/modules/luci-base/ucode/dispatcher.uc +++ b/modules/luci-base/ucode/dispatcher.uc @@ -395,7 +395,7 @@ function build_pagetree() { } node.children ??= {}; - node.children[s[0]] ??= {}; + node.children[s[0]] ??= { satisfied: true }; node = node.children[s[0]]; }