document.addEventListener('turbolinks:load', () => { document.querySelectorAll('a[href^="#"]').forEach(a => a.data.turbolinks = false) })