From 57c7321b85ecc3945cfca160bf6d84991c43bd3a Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Mon, 2 Jul 2012 15:16:41 -0700 Subject: [PATCH] localhost vs redirect bug --- rt/lib/RT/Interface/Web.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rt/lib/RT/Interface/Web.pm b/rt/lib/RT/Interface/Web.pm index 262aeacde..94da3072d 100644 --- a/rt/lib/RT/Interface/Web.pm +++ b/rt/lib/RT/Interface/Web.pm @@ -783,7 +783,7 @@ sub Redirect { my $redir_to = shift; untie $HTML::Mason::Commands::session; my $uri = URI->new($redir_to); - my $server_uri = URI->new( RT->Config->Get('WebURL') ); + my $server_uri = URI->new( _NormalizeHost(RT->Config->Get('WebURL')) ); # Make relative URIs absolute from the server host and scheme $uri->scheme($server_uri->scheme) if not defined $uri->scheme; -- 2.11.0