diff --git a/Oqtane.Client/Themes/Controls/Theme/CookieConsent.razor b/Oqtane.Client/Themes/Controls/Theme/CookieConsent.razor index c1cf1501..1ff5406b 100644 --- a/Oqtane.Client/Themes/Controls/Theme/CookieConsent.razor +++ b/Oqtane.Client/Themes/Controls/Theme/CookieConsent.razor @@ -120,6 +120,9 @@ cookieString = _canTrack ? await CookieConsentService.CreateConsentCookieAsync() : await CookieConsentService.WithdrawConsentCookieAsync(); } + //update the page state + PageState.AllowCookies = _canTrack; + if (!string.IsNullOrEmpty(cookieString)) { var interop = new Interop(JSRuntime);