From: Kristian Evensen Date: Tue, 29 May 2018 20:27:06 +0000 (+0200) Subject: luci-app-firewall: Fix typo in forwards redirect X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d3aa12b8ed74fd07702ed8209f858a275d38096a;p=oweals%2Fluci.git luci-app-firewall: Fix typo in forwards redirect 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 --- diff --git a/applications/luci-app-firewall/luasrc/model/cbi/firewall/forwards.lua b/applications/luci-app-firewall/luasrc/model/cbi/firewall/forwards.lua index e61ce73cd..5485ebf09 100644 --- a/applications/luci-app-firewall/luasrc/model/cbi/firewall/forwards.lua +++ b/applications/luci-app-firewall/luasrc/model/cbi/firewall/forwards.lua @@ -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