Hi all!
I’m using Turbo.visit to update some settings of my app.
The SettingsController update the settings and return a turbo stream. The turbo stream update the flash div in the app and show a flash notification “Settings saved”.
The problem is when the turbo stream is returned, Turbo also updates the current URL to “myapp/settings/save”. I don’t want that to happen, I want to keep the URL to “myapp/home” or any other URL where the settings endpoint is called from.
Is there any way to achieve that?
Thanks.