diff --git a/app/views/layouts/_new_header.haml b/app/views/layouts/_new_header.haml index dad1e8d20..a5c6f5883 100644 --- a/app/views/layouts/_new_header.haml +++ b/app/views/layouts/_new_header.haml @@ -36,7 +36,7 @@ - if nav_bar_profile == :user %ul.header-tabs %li - = active_link_to "Dossiers", dossiers_path, active: :inclusive, class: 'tab-link' + = active_link_to "Dossiers", users_dossiers_path, active: :inclusive, class: 'tab-link' %ul.header-right-content - if nav_bar_profile == :gestionnaire && gestionnaire_signed_in? diff --git a/spec/views/layouts/_new_header_spec.rb b/spec/views/layouts/_new_header_spec.rb index 17ceb970b..49fd3345a 100644 --- a/spec/views/layouts/_new_header_spec.rb +++ b/spec/views/layouts/_new_header_spec.rb @@ -15,7 +15,7 @@ describe 'layouts/_new_header.html.haml', type: :view do let(:profile) { :user } it { is_expected.to have_css("a.header-logo[href=\"#{users_dossiers_path}\"]") } - it { is_expected.to have_link("Dossiers", href: dossiers_path) } + it { is_expected.to have_link("Dossiers", href: users_dossiers_path) } end context 'when rendering for gestionnaire' do