From 2e26ab06edbf6761bbb52e968d89a3e20fe15cfc Mon Sep 17 00:00:00 2001 From: nils&paul Date: Wed, 21 Sep 2022 16:17:08 +0200 Subject: [PATCH] Use baseSiteUrl instead of siteUrl, to prevent URL params to get included. Fix #37, #39 --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index 6c5eea7..169676a 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -122,7 +122,7 @@ protected function registerAssetBundles() } // Include JS - $view->registerJs('var cccSiteUrl = "' . UrlHelper::siteUrl() . '"', View::POS_HEAD); + $view->registerJs('var cccSiteUrl = "' . UrlHelper::baseSiteUrl() . '"', View::POS_HEAD); $view->registerAssetBundle('nilsenpaul\\cookieconsent\\assetbundles\\CompleteCookieConsentJsAsset'); }