mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
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:
@@ -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}
|
||||
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user