How to keep query string in Save Actions? #458
-
Hi, when I click on "save and edit" I would like to keep the query string, essentially the url is: I also tried to edit the file
but same problem, is there a way to keep the query string? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @cod3rshotout you should remove the stock Backpack Save Action, and add your own with your redirect url. // in your setupCreateOperation()
CRUD::removeSaveAction('save_and_edit');
CRUD::addSaveAction([]); Check the docs https://backpackforlaravel.com/docs/5.x/crud-save-actions#save-actions-api-1 Let us know if you have any trouble. Cheers |
Beta Was this translation helpful? Give feedback.
-
I'm closing this issue due to inactivity. If you need further assistance or have additional questions, feel free to reopen this issue or create a new one. We're here to help! |
Beta Was this translation helpful? Give feedback.
Hey @cod3rshotout
you should remove the stock Backpack Save Action, and add your own with your redirect url.
Check the docs https://backpackforlaravel.com/docs/5.x/crud-save-actions#save-actions-api-1
Let us know if you have any trouble.
Cheers