Skip to content

Commit

Permalink
prevent logout btn:hover from pre-logging out User via Turbo 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Kulp committed Sep 21, 2024
1 parent 6297152 commit d7accd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<% if current_user %>
<%= link_to 'Dashboard', dashboard_index_path, class: nav_link_classes('dashboard') %>
<%= link_to 'Account', account_index_path, class: nav_link_classes('account') %>
<%= link_to 'Logout', logout_path, class: nav_link_classes %>
<%= link_to 'Logout', logout_path, class: nav_link_classes, data: { turbo: false } %>
<% else %>
<%= link_to 'Contact', "mailto:#{Rails.application.credentials.admin_email}", target: '_blank', class: nav_link_classes('contact') %>
<%= link_to 'Login', new_user_session_path, class: nav_link_classes('login') %>
Expand Down

0 comments on commit d7accd3

Please sign in to comment.