From ec8cf9e83cd4e4afdf0a00910e057a890600e8a8 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 21 Aug 2023 09:24:32 +0200 Subject: [PATCH] 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 --- modules/luci-base/ucode/dispatcher.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]]; }