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

John M. Dlugosz wxju46gefd at snkmail.com
Mon Mar 7 18:05:11 GMT 2011


  On 3/7/2011 9:34 AM, Ronald J Kimball rkimball-at-pangeamedia.com |Catalyst/Allow to 
home| wrote:
> 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
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
My bad.  I thought the ? came after the #.



More information about the Catalyst mailing list