From 2c7645b8e961e65253e4a3b60533b99e5ece6605 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 1 Dec 2019 20:21:04 +0100 Subject: [PATCH] luci-base: expose effective dispatched path to client side environment Signed-off-by: Jo-Philipp Wich (backported from commit 97f27e0d54fd1a1534b99421aa0e930fbe274db8) --- modules/luci-base/luasrc/view/header.htm | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/luci-base/luasrc/view/header.htm b/modules/luci-base/luasrc/view/header.htm index 08911c7f5..43aedf278 100644 --- a/modules/luci-base/luasrc/view/header.htm +++ b/modules/luci-base/luasrc/view/header.htm @@ -23,6 +23,7 @@ scriptname = luci.http.getenv("SCRIPT_NAME"), pathinfo = luci.http.getenv("PATH_INFO"), requestpath = luci.dispatcher.context.requestpath, + dispatchpath = luci.dispatcher.context.path, pollinterval = luci.config.main.pollinterval or 5, sessionid = luci.dispatcher.context.authsession, apply_rollback = math.max(applyconf and applyconf.rollback or 30, 30), -- 2.25.1