diff --git a/app/views/channels/_channels.html.slim b/app/views/channels/_channels.html.slim index a3c0309c..2bbf5225 100755 --- a/app/views/channels/_channels.html.slim +++ b/app/views/channels/_channels.html.slim @@ -5,4 +5,6 @@ ul.nav.nav-pills.flex-column - @channel.scheme.channels.each do |channel| li.nav-item - = link_to channel_platform(channel), friendly_channel_overview_path(channel), class: "nav-link nav-link-flat #{(params[:id] || params[:channel]) == channel.slug ? 'active' : ''}" + = link_to channel_platform(channel), friendly_channel_overview_path(channel), \ + class: "nav-link nav-link-flat #{(params[:id] || params[:channel]) == channel.slug ? 'active' : ''}", \ + data: { turbo_action: :advance } diff --git a/app/views/channels/_mobile_menu.html.slim b/app/views/channels/_mobile_menu.html.slim index 3a57ae8a..74f63808 100755 --- a/app/views/channels/_mobile_menu.html.slim +++ b/app/views/channels/_mobile_menu.html.slim @@ -9,7 +9,7 @@ scheme_link = using_friendly_channel_path(scheme, @channel) - if scheme_link.present? li - = link_to scheme.name, scheme_link, class: 'dropdown-item' + = link_to scheme.name, scheme_link, class: 'dropdown-item', data: { turbo_action: :advance } .nav-item.dropdown.channels.w-50 button.btn.btn-secondary.dropdown-toggle.w-100.rounded-0.rounded-end data-bs-toggle="dropdown" @@ -21,7 +21,8 @@ - if channels.present? - channels.each do |channel| li - = link_to channel_platform(channel), friendly_channel_overview_path(channel), class: 'dropdown-item' + = link_to channel_platform(channel), friendly_channel_overview_path(channel), \ + class: 'dropdown-item', data: { turbo_action: :advance } - else li span.text-gray.dropdown-item = t('channels.show.none') diff --git a/app/views/channels/_schemes.html.slim b/app/views/channels/_schemes.html.slim index 6a36c68c..043dbdd1 100755 --- a/app/views/channels/_schemes.html.slim +++ b/app/views/channels/_schemes.html.slim @@ -8,5 +8,6 @@ scheme_link = using_friendly_channel_path(scheme, @channel) - if scheme_link.present? li.nav-item - a.nav-link.nav-link-flat href="#{scheme_link}" class="#{@channel.scheme.name == scheme.name ? 'active' : ''}" - = scheme.name + = link_to scheme.name, scheme_link, \ + class: "nav-link nav-link-flat #{@channel.scheme.name == scheme.name ? 'active' : ''}", \ + data: { turbo_action: :advance }