Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailto decrypter not working on mailto with text not the email address #293

Open
mattsqd opened this issue Sep 5, 2024 · 0 comments
Open
Labels
bug Something isn't working Drupal Requires integration from the Drupal side.

Comments

@mattsqd
Copy link
Collaborator

mattsqd commented Sep 5, 2024

For example:
<a href="mailto: [email protected]>contact us</a>
gets turned into this in the dom
<a href="[/cdn-cgi/l/email-protection#eb9b99829d8a8892ab8982938a87c5888486d4989e89818e889fd6bb99829d8a8892ced9dbbb8487828892](view-source:https://www.bixal.com/cdn-cgi/l/email-protection#eb9b99829d8a8892ab8982938a87c5888486d4989e89818e889fd6bb99829d8a8892ced9dbbb8487828892)">contact us</a>
While
<a href="mailto: [email protected]>[email protected]</a>
Gets turned into this in the dom:
<a href="[/cdn-cgi/l/email-protection#5e373038311e3c37263f32703d3133](view-source:https://www.bixal.com/cdn-cgi/l/email-protection#5e373038311e3c37263f32703d3133)"><span class="__cf_email__" data-cfemail="0c65626a634c6e65746d60226f6361">[email&#160;protected]</span></a>

Our bx-global.js function cfDecodeEmails handles the latter, but not the former. Update it to handle both.

@mattsqd mattsqd added bug Something isn't working Drupal Requires integration from the Drupal side. labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Drupal Requires integration from the Drupal side.
Projects
None yet
Development

No branches or pull requests

1 participant