I wrote this in a .m file to redirect but its not redirecting
unless ( defined $order){
# Redirect customer to YA home page
FLLogError("Requested order does not exist. Redirecting..." );
my $url = $Std->url('/gp/css/homepage');
$m->redirect($url);
# $m->comp('/gp/css/homepage');
# $m->abort();
}
and in the error logs i got
Requested order does not exist. Redirecting... ; backtrace {
Safe::Root0::HTML::Mason::Commands::__ANON__()@/apollo/env/MDotComEU/perl/amazonMason/HTML/Mason/Component.pm:136
|
HTML::Mason::Request::call_next()@/local/apollo/_env/MDotComEU-swit1na.1754017.43602681.113571363/mason/
www.marksandspencer.com/gp/css/autohandler:100 |
Safe::Root0::HTML::Mason::Commands::__ANON__()@/apollo/env/MDotComEU/perl/amazonMason/HTML/Mason/Component.pm:136
|
HTML::Mason::Request::call_next()@/local/apollo/_env/MDotComEU-swit1na.1754017.43602681.113571363/mason/
www.marksandspencer.com/autohandler:154 |
Safe::Root0::HTML::Mason::Commands::__ANON__()@/apollo/env/MDotComEU/perl/amazonMason/HTML/Mason/Component.pm:136
}
Thanks & Regards,
Anuj
--
Anuj Kumar
Third Year Undergraduate,
Dept. of Computer Science and Engineering
NIT Durgapur
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users