MakeClicky does not handle html anchors correctly

Hello,

If you have set Set(@Active_MakeClicky, qw(httpurl_overwrite));
and you add a link like HTML element - Wikipedia to a ticket,
it becomes visible as “H - Wikipedia TML_anchor#Anchor” (note the space after the H)
and the link location is “HTML element - Wikipedia” ( the anchor #Anchor is missing)

As far as I can see html anchors are not supported buy Regexp::Common::URI::HTTP
Is there a known workaround available ?

TIA
Joe

If you have set Set(@Active_MakeClicky, qw(httpurl_overwrite));

and the link location is “HTML element - Wikipedia” ( the anchor #Anchor is missing)

I put this in the local ./html/Elements/MakeClicky callback file:

    name   => "httpurl_overwrite",

regex => qr/$RE{URI}{HTTP}{-keep}{-scheme => ‘https?’}/,

negative lookbehind to allow unmodified img tag markup in combo with

ScrubHTML rules
regex => qr@(?<!
src=["'])https?:([\w/@-~%#?=;,.:+()]|&|)+[\w/]@,
action => “url_overwrite”,

Excellent Allen, thanks a lot!

This is what I am now using:

In $RTHOME/etc/RT_SiteConfig.pm
Set(@Active_MakeClicky, qw(httpurl_overwrite));

Find my $RTHOME/local/html/Elements/MakeClicky attached.

MakeClicky (6.63 KB)