[Catalyst-dev] RT #34782: [WISH] Way to remove parameter from URI

J. Shirley jshirley at gmail.com
Wed May 28 16:32:30 GMT 2008


On Wed, May 28, 2008 at 6:42 AM, Brian Cassidy <brian.cassidy at nald.ca> wrote:
> On behalf of "m.e <m.e at acm.org>":
>
> [WISH] Way to remove parameter from URI
>
> $c->req->uri_for() provides a way of adding an extra parameter to a URI
> or overwriting an existinf parameter, but there is no way of removing an
> existing parameter. URI::QueryParam provides a query_param_delete($key)
> method; something like this would be nice.
>
> --
>
> The original RT ticket can be found here:
>
> http://rt.cpan.org/Ticket/Display.html?id=34782
>

Looks like a patch for uri_with?  Maybe change the behavior for undef
values to remove (right now they are ignored).  Then you can just do
$c->req->uri_with({ foo => undef });

Seems DWIW.

-J



More information about the Catalyst-dev mailing list