My Rails 4 application has two layouts; one for users who are logged out and another for those who are logged in. These layouts utilize different stylesheets.
The issue arises when I have multiple browser tabs open and log out of one tab. The other tab still displays the "logged in" layout, causing a mismatch between the displayed layout and the user's actual authentication status.
When I interact with the page on the tab that is supposed to be logged out, it redirects to the sign-in layout using Turbolinks, but fails to load the appropriate stylesheets for that layout.
Is there a way to instruct Turbolinks to reload the entire page along with the necessary stylesheets from the server side?
Thank you for any assistance provided.