Hi,
i'm not sure how to solve this:
I list all customers (with sorting options via URL query ?sort=...&city...)
I click on "Create new customer"
I save the new customer
I want to redirect to step 1 with a) the same sorting settings AND with the new user (of course only displayed if he fits into the search request).
Inside MyController():
public function saveCustomer()
{
// save data into db
return Redirect::action('MyController@listCustomers');
}
Okay this just redirects to "List all customers" without any sorting :(
Instead of this i tried
return Redirect::back();
but this redirects only to the last page (the new-customer-form).
So i need something like javascript history go back(-2) but with a refresh of that url.
Maybe put the referer into a hidden field inside the form and send it to the saveCustomers controller?
return Redirect::to(Input::get('referer'));
Any other ideas?
Thanks, Sharping