From de195ee3748ce32d3fe8ede618a2743f61dc57ab Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Mon, 29 Feb 2016 10:49:18 -0800 Subject: [PATCH] "No thanks" should apply to entire site This fixes a bug where dismissing the modal with "no thanks" would hide it for the current page, but the modal would then reappear when navigating to another page. --- _layouts/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_layouts/default.html b/_layouts/default.html index 2e41a90f..b672bf2b 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -49,7 +49,7 @@ ga('send', 'event', 'harrowBanner', 'clickthrough'); }); $(".harrowBanner__dismissLink").on('click', function (e) { - $.cookie('harrowBanner__dismissed', '1', { expires: 10}); + $.cookie('harrowBanner__dismissed', '1', { path: "/", expires: 10 }); $('.harrowBanner').hide(); ga('send', 'event', 'harrowBanner', 'dismiss'); });