[Catalyst] Trailing undef in uri_for()

Bill Moseley moseley at hank.org
Tue Jun 5 06:59:41 GMT 2007


In a template I was using:

    c.uri_for( 'path', arg1, arg2 );

where arg1 and arg2 are sometimes not defined.   In that case uri_for
generates a url with two trailing slashes.

Is there a reason to keep that behavior or should uri_for pop any
undefined items off @args?


-- 
Bill Moseley
moseley at hank.org




More information about the Catalyst mailing list