mod_custom_redirect: fix delete buttons, and type of submit button
(cherry picked from commit e79cccebbbb0c7777febb84641696274dec13e2c)