[rt-users] Absolute URL in parent/child ticket links

Kevin Falcone falcone at bestpractical.com
Fri Jun 26 09:45:00 EDT 2009


On Jun 26, 2009, at 2:59 AM, Woody - Wild Things wrote:

> Sorry to reply to my own post, but I've had no reply, and am wondering
> if I'm asking a really stupid question, or something obvious.
>
> Please let me know if this is the case, as I can't figure it out  
> myself :(

You have to locally change Elements/ShowLinks (and possibly
URI.pm).  Because a Ticket can "Refer To" an external URI, RT
generates full URI for every link.

-kevin

>
> Woody - Wild Things wrote:
>> Hi all,
>>
>> I have an issue with the links to parent/child tickets in the links
>> section of the ticket view. (RT-3.8.1 gentoo)
>>
>> They are absolute, and not relative.
>>
>> <li><a href="http://rt.mydomain.com:81/Ticket/Display.html?id=7690">
>>
>> I have users logging on to the same RT from different domains, but  
>> all
>> parent/child tickets link to the mydomain.com domain, which is in my
>> RT_SiteConfig.pm
>>
>> I couldn't understand the URL functions of RT's innards, so can  
>> anyone
>> provide me with a quick solution to this issue?
>>
>> I have:
>>
>> RT_SiteConfig.pm:Set($Organization , "mydomain.com");
>> RT_SiteConfig.pm:Set($WebBaseURL , "http://rt.mydomain.com: 
>> $WebPort");
>>
>> in my RT_SiteConfig.pm,
>>
>> Could I just remove the WebBaseURL altogether?
>>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
>




More information about the rt-users mailing list