From ad39d09a533e57ef8876e604ea255a4e903204a9 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Fri, 12 May 2017 13:23:29 +0200 Subject: [PATCH] Disable turbolinks on search links to fix JS errors [SCI-452] --- app/helpers/search_helper.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb index 8c266803e..479907bbb 100644 --- a/app/helpers/search_helper.rb +++ b/app/helpers/search_helper.rb @@ -11,10 +11,11 @@ module SearchHelper if search_team != current_team link_to text, path, - data: { confirm: t('users.settings.changed_team_in_search', + data: { no_turbolink: true, + confirm: t('users.settings.changed_team_in_search', team: search_team.name) } else - link_to text, path + link_to text, path, data: { no_turbolink: true } end end