From: Steven Barth Date: Wed, 20 Aug 2008 09:20:21 +0000 (+0000) Subject: modules/admin-full: Use absolute paths for network configuration pages X-Git-Tag: 0.8.0~341 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=1a08ed70d3a0dd40465ad96dafbea408d4c9389d modules/admin-full: Use absolute paths for network configuration pages --- 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 1f10ac829..3924e7c6c 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