diff options
author | Steven Barth <steven@midlink.org> | 2008-08-20 09:20:21 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-08-20 09:20:21 +0000 |
commit | 1a08ed70d3a0dd40465ad96dafbea408d4c9389d (patch) | |
tree | e23c0dc027b406fa5a43438a89722f239fd14ef2 /modules/admin-full/luasrc/model | |
parent | d1cda67d3f1ee74ba12f6b63fce898819245d510 (diff) |
modules/admin-full: Use absolute paths for network configuration pages
Diffstat (limited to 'modules/admin-full/luasrc/model')
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_network/network.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua index 1f10ac8290..3924e7c6cb 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_network/network.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_network/network.lua @@ -27,7 +27,7 @@ local netstat = luci.sys.net.deviceinfo() s = m:section(TypedSection, "interface", "") 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" function s.filter(self, section) @@ -43,7 +43,8 @@ end function s.parse(self, ...) TypedSection.parse(self, ...) 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 |