Turbolinks is running throughout the app. I need the page to reload in a certain scenario, inside a create method.
This redirects to the correct page, but does not reload the page:
redirect_to convos_path
This redirects to convos_path, but does not reload the page
redirect_to convos_path, data: { no_turbolink: true } and return
This doesn't do anything
redirect_to convos_path, turbolinks: false and return
I can see in the server logs it says
Rendered convos/index.html.erb within layouts/application (12.0ms)
How can I do a redirect_to, and have the page reload when it goes there?
Rails Turbolinks 5
Redirect and reload full page
redirect_to @convos_path, turbolinks: false
I got the solution from here.
<a data-turbolinks='false' href="url_here">Link Here</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With