Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the latest dev release there is an issue where the glossary entry contains a URL - either in plain text or as the text of an anchor element.
The text from the glossary entry is used for the title attribute of the glossary link. As a parameter of an html element this gets passed through the _filter_xss_attributes($attr) function in common.inc which removes everything but the url, mangling the text of the glossary entry and leaving you with a broken tool tip.
The attached patch removes the protocol element from any URL it finds which solves the issue.
Comment | File | Size | Author |
---|---|---|---|
0001-Remove-protocol-element-from-any-urls-in-the-tooltip.patch | 1.06 KB | andrewdchancox@googlemail.com | |
Comments
Comment #1
andrewdchancox@googlemail.com CreditAttribution: andrewdchancox@googlemail.com commentedI've spent more time looking into this and the problem is that Drupal does not expect there to be anything fancy in a title tag. I've outlined my work around in a blog post:
http://blog.andrewhancox.com/drupal-glossify-and-wysiwyg/
Comment #2
ankur.addweb CreditAttribution: ankur.addweb at AddWeb Solution Pvt. Ltd. commentedI am unable to reproduce this issue. My tooltip is set to body which contains multiple links. Upon linking to content with links in body shows tooltip properly.
Also, link in above comment is no longer available.
Comment #3
ankur.addweb CreditAttribution: ankur.addweb at AddWeb Solution Pvt. Ltd. commented