blazer view rendering issue with turbolinks_render
Hi There!
I've been looking to integrate Ahoy with Blazer in my app and I stumbled upon this issue. I ultimately traced the root cause to the turbolinks_render gem which is included by Jumpstart. I'm wondering how this library is used within jumpstart and what functionality may break if I remove or disable the library. I'm also open to other workarounds that allow blazer and turbolinks_render to co-exist with rendering issues.
Thanks!
Kyle
I've been looking to integrate Ahoy with Blazer in my app and I stumbled upon this issue. I ultimately traced the root cause to the turbolinks_render gem which is included by Jumpstart. I'm wondering how this library is used within jumpstart and what functionality may break if I remove or disable the library. I'm also open to other workarounds that allow blazer and turbolinks_render to co-exist with rendering issues.
Thanks!
Kyle
Sounds like you probably want to link to Blazer with
https://github.com/turbolinks/turbolinks#disabling-turbolinks-on-specific-links
That fix your issue?
data-turbolinks="false"
https://github.com/turbolinks/turbolinks#disabling-turbolinks-on-specific-links
That fix your issue?
I'll have to research to see if the turbolinks_render gem respects that data attribute as noted in the turbolinks readme. They appear to be two separate projects so unsure. If that works it seems like I'll have to propose an update to the blazer gem since its mounted within my jumpstart app and rendering its own internal html views.
Would you agree there doesn't appear to be another option (outside of removing turbolinks_render from the Gemfile)?
Would you agree there doesn't appear to be another option (outside of removing turbolinks_render from the Gemfile)?
That data attribute is handled by Turbolinks, not turbolinks_render. You don't want to run Blazer under Turbolinks at all, so adding the attribute to the link should do it.
We use the exact same thing for Sidekiq and Administrate links in the navbar. Neither one of their UIs are designed for Turbolinks, so we use that attribute so it doesn't interfere.
We use the exact same thing for Sidekiq and Administrate links in the navbar. Neither one of their UIs are designed for Turbolinks, so we use that attribute so it doesn't interfere.
I ended up forking the blazer gem and adding an initializer that defaults turbolinks_render to false, which appears to have fixed the issue.
Notifications
You’re not receiving notifications from this thread.