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 <kristian.evensen@gmail.com>
This commit is contained in:
Kristian Evensen 2018-05-29 22:27:06 +02:00 committed by Jo-Philipp Wich
parent 8363d0ad6c
commit d3aa12b8ed

View 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