Using custom fields for URLs

Hi,

we are using custom field for storing URLs related to the ticket on
other sites (internal web-based database, wiki).

Is there any way to make RT “know” that these are in fact URLs so that
it can display the links as links and not as text?

The two things I’d like to overcome are:

  • the screen real estate wasted by terribly long URLs
  • the need to manually copy and paste the URL to get to the associated
    page

Greetings
Tim
Tim Pritlove, Discordian Evangelist
mailto:tim@ccc.de http://tim.geekheim.de/
aim:timpritlove jabber:tim@jabber.berlin.ccc.de
Project Blinkenlights http://www.blinkenlights.de/
“We have Ph.D.s here who know the stuff cold, and we don’t
believe it’s possible to protect digital content” – Steve Jobs

Hi Tim,

  • tim@ccc.de (Tim Pritlove) [Wed 20 Oct 2004, 14:36 CEST]:

Is there any way to make RT “know” that these are in fact URLs so that
it can display the links as links and not as text?

Although it won’t solve the non-wrapping of overly long URLs, try the
attached patch to make links clickable. Naming the anchor shouldn’t be
a major overhaul.

Good reasons exist for this functionality to have been removed from RT2
to RT3. Please be aware that this can be a security issue (XSS).

The regexp is based on http://www.foad.org/~abigail/Perl/url2.html

Cheers,

-- Niels.

RT30-clickable-urls.patch (1.34 KB)