luci-mod-admin-full: fix request path access in uci controller
Fixes #1725
Fixes 731ed77c0
("treewide: improve handling of page redirections in uci change views")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
bfc98bec4d
commit
d6b4a3d45a
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@
|
||||||
module("luci.controller.admin.uci", package.seeall)
|
module("luci.controller.admin.uci", package.seeall)
|
||||||
|
|
||||||
function index()
|
function index()
|
||||||
local redir = luci.http.formvalue("redir", true) or table.concat(disp.context.request, "/")
|
local redir = luci.http.formvalue("redir", true)
|
||||||
|
or table.concat(luci.dispatcher.context.request, "/")
|
||||||
|
|
||||||
entry({"admin", "uci"}, nil, _("Configuration"))
|
entry({"admin", "uci"}, nil, _("Configuration"))
|
||||||
entry({"admin", "uci", "changes"}, call("action_changes"), _("Changes"), 40).query = {redir=redir}
|
entry({"admin", "uci", "changes"}, call("action_changes"), _("Changes"), 40).query = {redir=redir}
|
||||||
|
|
Loading…
Reference in a new issue