javascript - Turbolinks and sign out in another browser tab -
i have rails 4 application 2 layouts, uses turbolinks , devise. 1 layout displayed when user logged out , other when he's logged in.
in both layouts use different stylesheets.
the problem when have 2 browser tabs open , log out on 1 of them, other still has "logged in" layout , when click redirects sign in layout using turbolinks , stylesheets sign in layout doesn't load.
is there way tell turbolinks reload whole page stylesheeets server side?
thanks answers.
if upgrade turbolinks 3 seems in redirect_to can pass turbolinks: false force full refresh. if want stay older version can set config.turbolinks.auto_include = false in application.rb , controllers use turbolinks include turbolinks::controller enable turbolinks.
Comments
Post a Comment