Ad

Custom Redirect After Backend Form Save

- 1 answer

Its possible to set the redirect and redirectClose attributes in the form configuration file to use custom redirects in create and update pages in the backend.

But is it possible to conditionally change where the user is redirected after form save? Lets say based on some GET parameters.

Maybe somehow in the controller? Or create/update view?

Ad

Answer

You can override Controller functions create_onSave, update_onSave like that

public function create_onSave($context = null)
{
    parent::create_onSave($context);

    return \Backend::redirect($your_custom_url);
}
Ad
source: stackoverflow.com
Ad