[rt-users] Weirdness with $WebURL and certain links
Jesse Vincent
jesse at bestpractical.com
Sat Mar 3 06:02:14 EST 2007
On Mar 3, 2007, at 2:45 AM, Jamie A Lawrence wrote:
> Hi, all -
>
> I just set up RT 3.6.3 with RTFM (2.0.4, I think, but whatever the
> latest production was about a week ago).
>
> Everything's fine (fully functional, and mostly already in use),
> save one thing. Anchors in the 'Links' sections all point to
> localhost, implicit port 80, instead of the configured host/port.
> Only those - everything else just works fine.
>
>
When you viewed the "configuration" page in the Admin UI, what did
you see? (Had your changes taken effect?)
-jesse
> I Set $WebBaseURL in SiteConfig, and then to be sure, hardcoded
> $WebURL. I went so far as to do the same in RT_Config (I know, but
> this was becoming cargo coding, and I changed it back.). Yes,
> server restarts in between.
>
> So, I started tracing through the code stack, and came to lib/RT/
> URI/fsck_com_rt.pm. Sure enough, once I committed the ultimate sin:
>
> sub HREF {
> my $self = shift;
> if ($self->IsLocal && $self->Object && ($self->ObjectType eq
> 'ticket')) {
> return ( 'http://my.domain.com:8080/' . "Ticket/
> Display.html?id=".$self->Object->Id);
> #return ( $RT::WebURL . "Ticket/Display.html?id=".$self-
> >Object->Id);
> }
> else {
> return ($self->URI);
> }
> }
>
> It worked.
>
> (1) Does anyone have any idea why this might be happening?
> (2) Is this going to break something I haven't noticed yet (other
> than the inevitable grief in a year when I upgrade and don't
> remember that I did that), if I leave it in place out of expediency?
>
> TIA,
>
> -j
> _______________________________________________
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070303/ddd94953/attachment.sig>
More information about the rt-users
mailing list