From 9e76135b275353e698d00cc02fea5424e1667bb2 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Tue, 14 Apr 2020 18:02:52 +0200 Subject: [PATCH] views: add identifiers to fooker links In Sentry, when an `ActionController::InvalidAuthenticityToken` error occurs, the breadcrumbs mention that before hitting the error, the user clicked on one of those links. Unfortunately we don't know which one. For debugging purposes, adding classes to the links should allow us to see which links users are navigating to. --- app/views/users/_general_footer_row.html.haml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/users/_general_footer_row.html.haml b/app/views/users/_general_footer_row.html.haml index 987c199e4..52e27bfe0 100644 --- a/app/views/users/_general_footer_row.html.haml +++ b/app/views/users/_general_footer_row.html.haml @@ -1,7 +1,7 @@ %ul.footer-row.footer-bottom-line.footer-site-links - %li>= link_to "Accessibilité", accessibilite_path - %li>= link_to "CGU", CGU_URL, target: "_blank", rel: "noopener noreferrer" - %li>= link_to "Mentions légales", MENTIONS_LEGALES_URL, target: "_blank", rel: "noopener noreferrer" - %li>= link_to 'Documentation', DOC_URL - %li>= contact_link "Contact technique", dossier_id: dossier&.id - %li>= link_to 'Aide', FAQ_URL + %li.footer-link-accessibilite>= link_to "Accessibilité", accessibilite_path + %li.footer-link-cgu>= link_to "CGU", CGU_URL, target: "_blank", rel: "noopener noreferrer" + %li.footer-link-mentions-legales>= link_to "Mentions légales", MENTIONS_LEGALES_URL, target: "_blank", rel: "noopener noreferrer" + %li.footer-link-doc>= link_to 'Documentation', DOC_URL + %li.footer-link-contact>= contact_link "Contact technique", dossier_id: dossier&.id + %li.footer-link-aide>= link_to 'Aide', FAQ_URL