Hi, all

this may not be a CAP question,
I use C-A::plugin::Redirect,


when the app run with URI like "/cgi-bin/app.cgi/news/1024"
and I want to redirect to "/cgi-bin/app.cgi/home", (for news id 1024 may not
found)

I use $cap->redirect('../home');          # I always think this will work

but I only got redirect to "/cgi-bin/app.cgi/news/home",        and this
will got a endless loop

could anyone tell me a better method ? not use absolute path or
CAP::P::Forward
maybe I need to caculate the new path by $ENV{xxx}

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to