0

I have my Rails application setup using Turbolinks 5, and have the android application successfully built and shipped and it is working with my data-turbolinks="false". I am starting the iOS application and everything appears to be working except the data-turbolinks="false" links which end opening Safari instead of doing their javascript function tied to the link.

Is this not handled in Turbolinks for IOS and I need to handle myself? I followed the demo application pretty closely to get started. I am new to Swift and iOS. I can edit with any code needed. Any help is appriciated, Thank You.

Ryan Condron
  • 429
  • 1
  • 3
  • 14

1 Answers1

0

I found a way to do this. Since, these are event links you just need to attach click event to prevent the default. like so

$('.event-link').click(function(e) {
 e.preventDefault();
})

Now apply the event-link class to the link.

Ryan Condron
  • 429
  • 1
  • 3
  • 14