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

This commit is contained in:
mfo 2024-11-20 14:44:45 +01:00
parent 998670433e
commit d78faf9612
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -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