Skip to content

Commit

Permalink
Use baseSiteUrl instead of siteUrl, to prevent URL params to get incl…
Browse files Browse the repository at this point in the history
…uded. Fix #37, #39
  • Loading branch information
nilsenpaul committed Sep 21, 2022
1 parent 7b0a553 commit 2e26ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit 2e26ab0

Please sign in to comment.