Clicking “back” in the browser disables my javascript code if I'm using Turbolinks in Rails

后端 未结 4 1055
孤街浪徒
孤街浪徒 2020-12-14 19:42

Well, as the title says more or less. I\'m using the gem Turbolinks in my Rails application and I\'m having a bit of a problem with the \"browser back\"-button. My javascrip

4条回答
  •  伪装坚强ぢ
    2020-12-14 20:10

    The jquery-turbolinks gem doesn't support Turbolinks 5 anymore, so that solution is deprecated right now.

    If you'd like to disable turbolinks-caching, just add this meta to your page;

    
    

提交回复
热议问题