sutty/app/javascript/etc/turbolinks-anchors.js

3 lines
143 B
JavaScript

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