Needs work
Project:
Obfuscate Email
Version:
2.1.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2023 at 12:04 UTC
Updated:
7 Aug 2024 at 23:17 UTC
Jump to comment: Most recent
The Obfuscate Email process worked smoothly until yesterday. Now suddenly the data-mail-to="vasb/ng/grfg/qbg/pbz" data-replace-inner attributes are present in the front end. These elements do not get converted to href="mailto:info@test.com" as before.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot 2023-11-09 at 14.51.46.png | 80.38 KB | titacvetkovic | |
| Screenshot 2023-11-09 at 14.52.55.png | 103.38 KB | titacvetkovic | |
| Screenshot 2023-11-09 at 14.53.11.png | 84.06 KB | titacvetkovic |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
hebl commentedHello,
I've installed and tested this and it's working as expected my end.
Have you checked your JavaScript console to check if any other errors are blocking the execution of this module code?
Comment #3
titacvetkovic commentedHi @Hebl,
Thank you for testing this from your end.
Well, that's the odd thing - I don't get any errors anywhere. All of this is clear:
- /admin/reports/dblog
- /admin/reports/status
- PhpStorm "Problems" tab
- Firefox Developer console
- Chrome console
But the emails are chopped locally and on the server. It looks like the issue starts before JS is even initiated.
For now we just had to disable the module on the live site in order for the emails to look professional.
Comment #4
joco_sp commentedThe issue is still present. We have it on multiple websites. Core Drupal 10.2.2 and the module version 2.1.0. It's happening only for the anonymous users and on the production websites.
I managed to pintpoint the cause to the core aggregation of the JavaScript files.
Two solutions worked for me. Either attach the library to the head
or do not preprocess it
I prefer the option to put it in the head.
Comment #7
joco_sp commentedHopefully I put the changes in the correct branches.
Comment #8
b_sharpe commentedI just ran a fresh D10.2 and can't reproduce this, are you using the email field or the Text Filter (CKEdtior)?
Comment #10
b_sharpe commentedPotentially related, I've removed the
VERSIONconstraint from the library due to #2205027: VERSION in library declarations does not work for contributed/custom modules