luci-base, luci-lua-runtime: fix "dispatched" and "requested" properties
authorJo-Philipp Wich <jo@mein.io>
Mon, 21 Nov 2022 11:24:31 +0000 (12:24 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 21 Nov 2022 11:24:31 +0000 (12:24 +0100)
commit08ae8d40a939654d2e4a1774853c5c5683b12268
tree3a0dc2b7a423b5535fdd38da0f99851d7b0b767f
parentc4d86c9f670a31e4541ccdf1876be3ab8b98ee5c
luci-base, luci-lua-runtime: fix "dispatched" and "requested" properties

Ensure to properly emulate the "dispatched" and "requested" properties
which refer to the executed and initially resolved menu node respectivey.

Also stop exposing a `node` property in Lua context to maintain full
compatibility with the old Lua runtime.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/ucode/dispatcher.uc
modules/luci-lua-runtime/luasrc/dispatcher.lua