velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: Incompatibilities in VELTOOLS from 1.4 -> 2.0 (was: Disappearance of LinkTool.setRelative)
Date Wed, 20 Jul 2011 00:12:21 GMT
the createURI method ignores query params for opaque URIs, that's the
only explanation that seems possible to me with what i know of your
code.  it's been years since i wrote all this, so i don't recall all
the vagaries of the URI class and opaque URI handling.  but it
definitely seems wrong to not allow params on a mailto link.  i'd say
that needs to be fixed.  i've no idea when i'd be able to get to that.

On Tue, Jul 19, 2011 at 3:07 PM, Christopher Schultz
<> wrote:
> All,
> On 7/19/2011 5:39 PM, Christopher Schultz wrote:
>> I'm getting a syntax error for a "mailto" link which I'll have to
>> investigate.
> I fixed one problem (URI class was objecting to spaces I had in the
> "opaque" portion of the URI - something like "Chris Schultz
> <>" as the URI) but it appears that LinkTool
> will no longer allow me to add query parameters to mailto links.
> Something like this doesn't work:
>  $link.uri("mailto:foo").param('foo', 'bar')
> Result:   mailto:foo
> Expected: mailto:foo?foo=bar
> I've had a quick look at the code and I can't understand why it won't
> allow that. Any ideas?
> Thanks,
> -chris

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message