luci-app-firewall: redirect to overview page on zone details save
authorFlorian Eckert <Eckert.Florian@googlemail.com>
Tue, 20 Dec 2016 13:06:34 +0000 (14:06 +0100)
committerYousong Zhou <yszhou4tech@gmail.com>
Mon, 7 May 2018 13:46:38 +0000 (21:46 +0800)
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 <Eckert.Florian@googlemail.com>
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
applications/luci-app-firewall/luasrc/model/cbi/firewall/zone-details.lua

index 7553504572bbf4cbe577e19e6960269586472464..a42c1499f09f59a138ebd47d2b4d24998e3b3ffa 100644 (file)
@@ -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 = {