From db13e32c66e72b81045e11d5298b962071567f66 Mon Sep 17 00:00:00 2001 From: Brian Dukes Date: Wed, 28 Jul 2021 11:53:23 -0500 Subject: [PATCH] Ensure dnn.js is requested for cookie consent Fixes #4762 --- DNN Platform/Website/Default.aspx.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DNN Platform/Website/Default.aspx.cs b/DNN Platform/Website/Default.aspx.cs index d37f01ad8c4..c920715ed11 100644 --- a/DNN Platform/Website/Default.aspx.cs +++ b/DNN Platform/Website/Default.aspx.cs @@ -649,6 +649,7 @@ private void InitializePage() // Cookie Consent if (this.PortalSettings.ShowCookieConsent) { + JavaScript.RegisterClientReference(this, ClientAPI.ClientNamespaceReferences.dnn); ClientAPI.RegisterClientVariable(this, "cc_morelink", this.PortalSettings.CookieMoreLink, true); ClientAPI.RegisterClientVariable(this, "cc_message", Localization.GetString("cc_message", Localization.GlobalResourceFile), true); ClientAPI.RegisterClientVariable(this, "cc_dismiss", Localization.GetString("cc_dismiss", Localization.GlobalResourceFile), true);