From cc5333cb955af526dae42cc400496bf2e5561f51 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 17 Mar 2022 12:45:34 +0000 Subject: [PATCH] Bug 26019: Add two other js cookies Test plan: Same as former patch. Use OPAC adv search here. Signed-off-by: Marcel de Rooy Signed-off-by: Kyle M Hall Signed-off-by: Fridolin Somers --- .../opac-tmpl/bootstrap/en/modules/opac-advsearch.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt index cd21067de1..98562bdd36 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-advsearch.tt @@ -512,18 +512,18 @@ $(document).ready(function() { } }); form_serialized = $(this).serialize(); - Cookies.set("form_serialized", JSON.stringify( form_serialized ), { path: '/'}); + Cookies.set("form_serialized", JSON.stringify( form_serialized ), { path: '/', sameSite: 'Lax' }); form_serialized_limits = [ $('#language-limit').val(), $('#branchloop').val(), $('#subtype_audience').val(), $('#subtype_content').val(), $('#subtype_format').val(), $('#subtype_additional').val(), $('#locloop').val() ]; - Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/'}); + Cookies.set("form_serialized_limits", JSON.stringify( form_serialized_limits ),{ path: '/', sameSite: 'Lax' }); [% IF ( expanded_options ) %] - Cookies.set("search_path_code", 'exs', { path: '/'}); + Cookies.set("search_path_code", 'exs', { path: '/', sameSite: 'Lax' }); [% ELSE %] - Cookies.set("search_path_code", 'ads', { path: '/'}); + Cookies.set("search_path_code", 'ads', { path: '/', sameSite: 'Lax' }); [% END %] }); -- 2.39.5