From 86e81cd0dea8a497dc305be5df0795339c8662cb Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 7 Feb 2024 21:43:09 -0600 Subject: [PATCH] Don't let turbo handle search_context tracking form when meta + click Otherwise turbo ignores the meta and puts the response in the same window. --- app/javascript/blacklight/search_context.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/blacklight/search_context.js b/app/javascript/blacklight/search_context.js index 992babd7a5..9806e5943c 100644 --- a/app/javascript/blacklight/search_context.js +++ b/app/javascript/blacklight/search_context.js @@ -27,6 +27,7 @@ SearchContext.handleSearchContextMethod = function(event) { // check for meta keys.. if set, we should open in a new tab if(event.metaKey || event.ctrlKey) { + form.dataset.turbo = "false"; target = '_blank'; }