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.
Hi!
I was wondering if it's possible to disable the External Links in the links created by the Geshi filter? Any things I should consider?
Thanks!
Comments
Comment #1
quicksketchExternal links only affects links that are actually
<a href=""></a>
links. What's probably happening is that you have the core "URL filter" enabled on you input format, which is automatically creating links out of URLs. What you need to do is not disable External Links (which just adds an icon), but disable the automatic creation of URLs added by the core URL Filter.Comment #2
quicksketchComment #3
J. Scott Elblein CreditAttribution: J. Scott Elblein commentedI have my URL filter disabled and still have this problem. When you use the geshi tags it's meant to be able to display actual code, so oftentimes you manually add the "a href, etc." as the code to display, and sometimes the external links icon shows up in it.
Comment #4
marcoka CreditAttribution: marcoka commentedwell, he is right but i think geshi itself need some "protect a href", meaning dont display them as links and dont add other stuff.
i have the problem too that the url filter kills all my geshi code like he makes a hrefs out of urls. disable it globally is not an option. so we should use some protecting that protects all stuff inside geshi tags not to be altered by any filters.
Comment #5
marcoka CreditAttribution: marcoka commentedhave you tried moving filter weights? i f i for example move geshi to the top, url filter doesnt convert my urls inside geshi tags to links anymore