From 85b67625f74031186b9ffa26c966082275796868 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Sat, 29 Dec 2018 14:10:10 +0000 Subject: treewide: fix redirecting to System->Software By replacing url "admin/system/packages" with "admin/system/opkg" Signed-off-by: Yousong Zhou --- .../luasrc/model/cbi/shadowsocks-libev/rules.lua | 2 +- .../luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-shadowsocks-libev/luasrc/model') diff --git a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua index 4a01bed247..5bfd3ddcf6 100644 --- a/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua +++ b/applications/luci-app-shadowsocks-libev/luasrc/model/cbi/shadowsocks-libev/rules.lua @@ -98,7 +98,7 @@ else o.inputstyle = "apply" o.write = function() return luci.http.redirect( - luci.dispatcher.build_url("admin/system/packages") .. + luci.dispatcher.build_url("admin/system/opkg") .. "?submit=1&install=iptables-mod-conntrack-extra" ) end diff --git a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua index 5fc20c52bc..54d9618db0 100644 --- a/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua +++ b/applications/luci-app-shadowsocks-libev/luasrc/model/shadowsocks-libev.lua @@ -199,7 +199,7 @@ function option_install_package(s, tab) function p_install.write() return luci.http.redirect( - luci.dispatcher.build_url("admin/system/packages") .. + luci.dispatcher.build_url("admin/system/opkg") .. "?submit=1&install=%s" % opkg_package ) end -- cgit v1.2.3