diff --git a/app/helpers/blacklight/url_helper_behavior.rb b/app/helpers/blacklight/url_helper_behavior.rb index c25931196..81dd88e19 100644 --- a/app/helpers/blacklight/url_helper_behavior.rb +++ b/app/helpers/blacklight/url_helper_behavior.rb @@ -36,7 +36,8 @@ def document_link_params(doc, opts) private :document_link_params ## - # Attributes for a link that gives a URL we can use to track clicks for the current search session + # Attributes for a link that gives a URL we can use to track clicks for the current search session. + # We disable turbo prefetch (InstantClick), because since we replace the link with a form, it's just wasted. # @param [SolrDocument] document # @param [Integer] counter # @example @@ -52,7 +53,7 @@ def session_tracking_params document, counter, per_page: search_session['per_pag return {} if path.nil? context_method = blacklight_config.track_search_session.storage == 'client' ? 'get' : 'post' - { data: { context_href: path, context_method: context_method } } + { data: { context_href: path, context_method: context_method, turbo_prefetch: false } } end ##