From d78faf9612ae7b8a7fb3dc8be1ac44fd7143e934 Mon Sep 17 00:00:00 2001 From: mfo Date: Wed, 20 Nov 2024 14:44:45 +0100 Subject: [PATCH] fix(breadcrumb): ETQ user having an instructeur and an admin, when i am connected as an instructeur, root of breadcrumb returns to instructeur_procedures_path, not root_path which is admin_procedures_path --- app/views/instructeurs/_breadcrumbs.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/instructeurs/_breadcrumbs.html.haml b/app/views/instructeurs/_breadcrumbs.html.haml index b5b98fec9..66d80be46 100644 --- a/app/views/instructeurs/_breadcrumbs.html.haml +++ b/app/views/instructeurs/_breadcrumbs.html.haml @@ -4,7 +4,7 @@ .fr-collapse#breadcrumb-1 %ol.fr-breadcrumb__list - %li= link_to t('root', scope: [:layouts, :breadcrumb]), root_path, class: 'fr-breadcrumb__link' + %li= link_to t('root', scope: [:layouts, :breadcrumb]), instructeur_procedures_path, class: 'fr-breadcrumb__link' - steps.each.with_index do |step, i| - if i == steps.size - 1