How can I make the sidebar work with Turbolinks?

Last updated over 3 years ago

Unfortunately Turbolinks requires some extra work on your side to make the sidebar work as expected.
Please add this to your application.coffee file:

$(document).on 'turbolinks:load', ->
  unless typeof(Slimfaq) == 'undefined'
    Slimfaq.reload()
If you are using Turbolinks-classic (anything < v5.0), please use this snippet:

$(document).on 'page:load', ->
  unless typeof(Slimfaq) == 'undefined'
    Slimfaq.reload()