modules/admin-full: Use absolute paths for network configuration pages
This commit is contained in:
parent
d1cda67d3f
commit
1a08ed70d3
1 changed files with 3 additions and 2 deletions
|
@ -27,7 +27,7 @@ local netstat = luci.sys.net.deviceinfo()
|
||||||
|
|
||||||
s = m:section(TypedSection, "interface", "")
|
s = m:section(TypedSection, "interface", "")
|
||||||
s.addremove = true
|
s.addremove = true
|
||||||
s.extedit = luci.http.getenv("REQUEST_URI") .. "/%s"
|
s.extedit = luci.dispatcher.build_url("admin", "network", "network") .. "/%s"
|
||||||
s.template = "cbi/tblsection"
|
s.template = "cbi/tblsection"
|
||||||
|
|
||||||
function s.filter(self, section)
|
function s.filter(self, section)
|
||||||
|
@ -43,7 +43,8 @@ end
|
||||||
function s.parse(self, ...)
|
function s.parse(self, ...)
|
||||||
TypedSection.parse(self, ...)
|
TypedSection.parse(self, ...)
|
||||||
if created then
|
if created then
|
||||||
luci.http.redirect(luci.http.getenv("REQUEST_URI") .. "/" .. created)
|
luci.http.redirect(luci.dispatcher.build_url("admin", "network", "network")
|
||||||
|
.. "/" .. created)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue