in reply to Re^2: Failure to redirect when my CGI::Application powered site is used under mod_perl2
in thread Failure to redirect when my CGI::Application powered site is used under mod_perl2

To reply to myself it seems that I have two solutions:

sub redirectURL { my ( $self, $url ) = (@_); $self->header_type('redirect'); $self->header_add( -url => $url , -status => 301 ); return; }

That redundent "return" seems to make things work properly in my demo and real application.

I guess the return value of "header_add" is causing problems ..

Steve
--
  • Comment on Re^3: Failure to redirect when my CGI::Application powered site is used under mod_perl2
  • Download Code