Skip to content

Commit

Permalink
feat(manager): add hide data attribute to policy page links
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAlphonso committed Mar 26, 2024
1 parent 7258b79 commit 5046b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Charcoal/CookieConsent/CookieConsentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function createPluginOptions(): array
if ($href) {
$linkAttributes = $privacyPolicyInstance->getAttributes();
$privacyPolicyTemplate = \sprintf(
'<a href="%s" target="%s" rel="%s">%s</a>',
'<a href="%s" target="%s" rel="%s" data-cookie-consent="hide">%s</a>',
$href . '?hide-cookie-consent',
($linkAttributes['target'] ?? '_self'),
($linkAttributes['rel'] ?? ''),
Expand Down

0 comments on commit 5046b55

Please sign in to comment.