Disable turbolinks for links to Stats pages

This is a workaround for #350
This commit is contained in:
Nicolas Bouilleaud 2019-09-23 14:25:04 +02:00
parent 346fccc000
commit 00b1aa0ea1
3 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@
%h1= procedure_libelle @procedure
= link_to 'gestion des notifications', email_notifications_instructeur_procedure_path(@procedure), class: 'header-link'
|
= link_to 'statistiques', stats_instructeur_procedure_path(@procedure), class: 'header-link'
= link_to 'statistiques', stats_instructeur_procedure_path(@procedure), class: 'header-link', data: { turbolinks: false } # Turbolinks disabled for Chartkick. See Issue #350
%ul.tabs

View file

@ -5,7 +5,7 @@
\-
= link_to 'Nouveautés', 'https://github.com/betagouv/demarches-simplifiees.fr/releases', target: '_blank'
\-
= link_to 'Statistiques', stats_path
= link_to 'Statistiques', stats_path, data: { turbolinks: false } # Turbolinks disabled for Chartkick. See Issue #350
\-
= link_to 'CGU / Mentions légales', CGU_URL
\-

View file

@ -23,7 +23,7 @@
%li.footer-link
= link_to "Nouveautés", "https://github.com/betagouv/demarches-simplifiees.fr/releases", :class => "footer-link"
%li.footer-link
= link_to "Statistiques", stats_path, :class => "footer-link"
= link_to "Statistiques", stats_path, :class => "footer-link", data: { turbolinks: false } # Turbolinks disabled for Chartkick. See Issue #350
%li.footer-link
= link_to "CGU", CGU_URL, :class => "footer-link", :target => "_blank", rel: "noopener noreferrer"
%li.footer-link