This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

romix17729579
romix17729579

Good day. I want to overwrite the redirect in the controller when I update the model. My code in controller:

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

        return \Backend::redirect("test");
    }

When I click on the button "Save And Close", this code works. But I do not know how to change url on the link "Cancel". Now this link "Cancel" will get url from the file config_form.yaml -> redirectClose: custom/customer/customers. I want to change this link in the controller depending on the GET-parameter. How?

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.