Merge pull request #10884 from openfoodfoundation/10882-cookie-banner-is-displayed-on-every-page-even-after-accepting

Do not show cookies banner once user accept it
This commit is contained in:
Filipe
2023-05-25 10:36:27 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@
%hr.hr-light
%br
= cache_with_locale [ContentConfig.cache_key, TermsOfServiceFile.current_url, Spree::Config.privacy_policy_url] do
= cache_with_locale [ContentConfig.cache_key, TermsOfServiceFile.current_url, Spree::Config.privacy_policy_url, Spree::Config.cookies_consent_banner_toggle, Web::CookiesConsent.new(cookies, request.host)] do
.row.legal
.small-12.medium-3.medium-offset-2.columns.text-left
%a{href: main_app.root_path}

View File

@@ -2,7 +2,7 @@
require 'system_helper'
describe "Cookies" do
describe "Cookies", caching: true do
describe "banner" do
# keeps banner toggle config unchanged
around do |example|