Re: Moving forward with hydra:filter (ISSUE-45)

>> and if no suitable
>> value is provided the query string parameter should be removed (this is
>> doable easily).
> 
> hydra:IriTemplate is based on RFC 6570 by default,

Indeed. Important here is there difference between
    http://example.org{?param}
and
    http://example.org?param={param}

Only in the former case can a NIL value cause the parameter to be removed.
In the second case, we cannot touch "?param=".

In general, removing is thus not possible.
Furthermore, the default behavior of Web browsers for empty form input
is to append the field name with a zero-length value, not to omit the field.
My proposal is therefore compatible with browser behavior.

Best,

Ruben

Received on Friday, 30 October 2015 12:33:42 UTC