projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f42af69
)
luci-base: expose effective dispatched path to client side environment
author
Jo-Philipp Wich
<jo@mein.io>
Sun, 1 Dec 2019 19:21:04 +0000
(20:21 +0100)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000
(19:40 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(backported from commit
97f27e0d54fd1a1534b99421aa0e930fbe274db8
)
modules/luci-base/luasrc/view/header.htm
patch
|
blob
|
history
diff --git
a/modules/luci-base/luasrc/view/header.htm
b/modules/luci-base/luasrc/view/header.htm
index 08911c7f5ba5b9c1af52bbc232d665f30fc826e2..43aedf278fec5fc8ecdb4f37aa6c7c75e56d77a1 100644
(file)
--- 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),