I have a requirement, where admin is performing certain action on a custom module, he should be redirected to admin-dashboard on error. I tried redirection codes with different values but they lead to 404 page. Moreover the admin url is customized not a customary one. its like admin.thesitename.com/index.php/securecontrolpanel
i am still trying but decided to ask here :) if i can get a quick help.