luci-app-firewall: Fix typo in forwards redirect
authorKristian Evensen <kristian.evensen@gmail.com>
Tue, 29 May 2018 20:27:06 +0000 (22:27 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 11 Jun 2018 05:10:48 +0000 (07:10 +0200)
When creating a forwarding rule with protocol set to other, a user is
forwarded to the configuration page. The URL for the configuration page
contained a typo - the user was forwarded to
admin/network/firewall/redirect/cfg... and not
admin/network/firewall/forwards/cfg..., leading to a 404.

Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
applications/luci-app-firewall/luasrc/model/cbi/firewall/forwards.lua

index e61ce73cdd6662a998ac03d34db537f62e688b45..5485ebf09680e01c1f09c40fa1229b96980a36f9 100644 (file)
@@ -54,7 +54,7 @@ function s.parse(self, ...)
        if created then
                m.uci:save("firewall")
                luci.http.redirect(ds.build_url(
-                       "admin/network/firewall/redirect", created
+                       "admin/network/firewall/forwards", created
                ))
        end
 end