From 55a2a1a51a8cf15a6e23ec5bfffd013e19c57d3f Mon Sep 17 00:00:00 2001
From: Michael Bumann
Date: Mon, 4 May 2020 11:09:57 +0200
Subject: [PATCH] Disable turbolinks for demo pages
---
app/views/home/demo-airtable.html.erb | 6 +++---
app/views/home/demo-google.html.erb | 6 +++---
app/views/home/index.html.erb | 4 ++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/app/views/home/demo-airtable.html.erb b/app/views/home/demo-airtable.html.erb
index fd19b46..e71517d 100644
--- a/app/views/home/demo-airtable.html.erb
+++ b/app/views/home/demo-airtable.html.erb
@@ -8,13 +8,13 @@
-
- <%= link_to demo_url(backend: 'google-sheets') do %>
+ <%= link_to demo_url(backend: 'google-sheets'), data: { turbolinks: 'false'} do %>
<%= image_tag 'google_sheets-icon.svg' %>
Google Sheets
<% end %>
-
- <%= link_to demo_url(backend: 'airtable') do %>
+ <%= link_to demo_url(backend: 'airtable'), data: { turbolinks: 'false'} do %>
<%= image_tag 'airtable-icon.svg' %>
Airtable
<% end %>
@@ -35,7 +35,7 @@
<%= link_to "Create your form now!", signup_url, class: 'button' %>
- or got <%= link_to 'further questions?', contact_url %>
+ or got <%= link_to 'further questions?', contact_url, data: { turbolinks: 'false'} %>
diff --git a/app/views/home/demo-google.html.erb b/app/views/home/demo-google.html.erb
index 28961e1..577ff9c 100644
--- a/app/views/home/demo-google.html.erb
+++ b/app/views/home/demo-google.html.erb
@@ -8,13 +8,13 @@
-
- <%= link_to demo_url(backend: 'google-sheets') do %>
+ <%= link_to demo_url(backend: 'google-sheets'), data: { turbolinks: 'false'} do %>
<%= image_tag 'google_sheets-icon.svg' %>
Google Sheets
<% end %>
-
- <%= link_to demo_url(backend: 'airtable') do %>
+ <%= link_to demo_url(backend: 'airtable'), data: { turbolinks: 'false'} do %>
<%= image_tag 'airtable-icon.svg' %>
Airtable
<% end %>
@@ -36,7 +36,7 @@
<%= link_to "Create your form now!", signup_url, class: 'button' %>
- or got <%= link_to 'further questions?', contact_url %>
+ or got <%= link_to 'further questions?', contact_url, data: { turbolinks: 'false'} %>
diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb
index ca72a04..68c385b 100644
--- a/app/views/home/index.html.erb
+++ b/app/views/home/index.html.erb
@@ -20,7 +20,7 @@
<%= link_to "Get started", signup_url, class: 'is-uppercase button is-rounded is-primary has-text-white a-menu' %>
- or try our <%= link_to "Live demos", demo_url %>
+ or try our <%= link_to "Live demos", demo_url, data: { turbolinks: 'false'} %>
@@ -245,7 +245,7 @@
<%= link_to "Start now - 15 days for free!", signup_url, class: 'is-uppercase button is-rounded is-primary has-text-white a-menu' %>
- Want to see tinyforms in action first? Try our <%= link_to "live demos", demo_url %>.
+ Want to see tinyforms in action first? Try our <%= link_to "live demos", demo_url, data: { turbolinks: 'false'} %>.