summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-08-21 09:24:32 +0200
committerJo-Philipp Wich <jo@mein.io>2023-08-21 09:48:29 +0200
commitec8cf9e83cd4e4afdf0a00910e057a890600e8a8 (patch)
tree88196379f041823baa458ffa5befe96d42e9fea0
parent09d5de617c2cb21b8b67dc8f54a181ebd8023fd3 (diff)
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>
-rw-r--r--modules/luci-base/ucode/dispatcher.uc2
1 files changed, 1 insertions, 1 deletions
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]];
}