title: redirect user on previous page after successfull task
body: <p>What should be good way to redirect user after successful action like edit or delete any item, in delete condition we could use <code>$_SERVER['HTTP_REFERER']</code> but in case of edit, we show first of all edit form and then user clicks update, so if we use same approach user would be redirected to edit page not main page. I hope you got idea about my confusion. thanks.</p>