Problem/Motivation
This is a followup to #3511457: Don't replace term if there is already a link on this term in the page.
If a word is found in an element of the page that has the glossify-exclude class, it will be considered as already glossified and will not be replaced elsewhere in the page.
This is confusing for our users. They don't understand why we don't glossify a term because it is in a part of the page that has nothing to do with glossify.
Steps to reproduce
Proposed resolution
Don't add the term to $replaced if it was found in an element with the glossify-exclude class.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork glossify-3534898
Show commands
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 #3
prudloff commentedComment #5
grevil commentedTotally makes sense! Thanks for the fix!
I added a test to reproduce this issue. Here is the test output without the changes by @prudloff in place:
Comment #7
grevil commented