Disable Turbo Drive on external links

1519
0

Turbo Drive is great for internal navigation, but I disable it for external links or pages that should do a full reload (third-party auth, docs). data-turbo='false' is the simplest switch: it tells Turbo not to intercept the click, so the browser handles it normally. I also use it on links that trigger downloads or on pages that depend on non-idempotent scripts. This is a good reminder that Hotwire is not all-or-nothing; it’s progressive enhancement. You can opt out per element without rewriting architecture. When debugging navigation oddities, I always check the HTML for accidental opt-outs, especially if a link is inside a data-turbo-permanent container.