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

后端 未结 4 1065
孤街浪徒
孤街浪徒 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 19:56

    Instead of completely disabling turbolinks-caching in the whole app (making turbolinks integration quite useless) as detailed in some previous answers, you can just disable turbolinks only for the parts of page that are giving you troubles with JS

    . . .

提交回复
热议问题