[Catalyst] How to get uri_for something with a fragment?

Ronald J Kimball rkimball at pangeamedia.com
Mon Mar 7 15:34:29 GMT 2011


On Sun, Mar 6, 2011 at 6:46 AM, John M. Dlugosz <wxju46gefd at snkmail.com> wrote:
>  On 3/6/2011 5:28 AM, Andrew Rodland andrew-at-cleverdomain.org
> |Catalyst/Allow to home| wrote:
>>
>> Or, since you know that what it generates *doesn't* have a fragment you could
>> always just $c->uri_for_action(...) . '#id' which will be perfectly valid
>> (although no longer a URI object).
>>
> I considered that a hack until I knew better, since it won't work if there
> are query arguments.

Why won't it work if there are query arguments?  Seems correct to me.

Ronald



More information about the Catalyst mailing list