You could save the current page in a flash session and refresh it till you call "URL:previous()" and add the parameter from the flash session to the URL:previous.
Feb 7, 2018
1
Level 4
L53 - Save/update and back to index with parameters
Hi to all, in my application i have a page where i have some filters and pagination, so the url could be:
myapp.dev/orders?id=45&gust=1&page=2
Its a normal page with get parameters.
Now, i have some actions where i can update/add new records.
So, when i visit this page, i can go to another to update a record
myapp.dev/orders/24/edit
When the edit is done, i call the update method on the controller and when the update is done, i would like to back on index page without lose pagination/filters.
I tried to use URL::previous() but do not works..
Someone have a solution ?
Thanks
Please or to participate in this conversation.