[Catalyst] $c->req->path assumes bad value when "empty"

Michele Beltrame mb at italpro.net
Fri Feb 24 15:30:32 CET 2006


Hello!

I noticed a strange behavious in Catalyst (I'm using version 5.65)
regarding the content of:

$c->req->path

in the "begin" method of my Aintra.pm module (the main one under /lib).
If I call my script with an action ( i.e.
http://www.mydomain.com/Aintra/script/aintra_cgi.pl/main/home ),
$c->req->path correctly contains:

main/home

If, however, I simply call the URL
http://www.mydomain.com/Aintra/script/aintra_cgi.pl , instead of being
empty as I expect, $c->req->path contains the base:

Aintra/script/aintra_cgi.pl

Is that normal?

	Thanks, Michele.

-- 
Michele Beltrame
http://www.varlogarthas.net/
ICQ# 76660101
Informativa privacy: http://www.italpro.net/em.html



More information about the Catalyst mailing list