From c1eba6a046dae39558fe96a6e1e7bbe6291e091e Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 20 Dec 2016 14:06:34 +0100 Subject: [PATCH] luci-app-firewall: redirect to overview page on zone details save This fixes an inconsistency because on the interface configuration if you press Save&Apply it will go back to overview page. It is also the case with "Firewall - Traffic Rules" details. On firewall zone it only goes back to firewall zone-detail. Same behaviour on all pages is a good user experience. Signed-off-by: Florian Eckert Signed-off-by: Yousong Zhou --- .../luasrc/model/cbi/firewall/zone-details.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua b/applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua index 7553504572..a42c1499f0 100644 --- a/applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua +++ b/applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua @@ -68,12 +68,6 @@ function name.write(self, section, value) out.exclude = value inp.exclude = value end - - m.redirect = ds.build_url("admin/network/firewall/zones", value) - m.title = "%s - %s" %{ - translate("Firewall - Zone Settings"), - translatef("Zone %q", value or "?") - } end p = { -- 2.30.2