[ 
https://issues.apache.org/jira/browse/VELTOOLS-143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16633610#comment-16633610
 ] 

Claude Brisson commented on VELTOOLS-143:
-----------------------------------------

The situation is even worse, because with calls like:
 {{  $link.params("subject", 
"foo").uri("mailto:[email protected][email protected]";)}}
 we would have to manually merge the query strings.

It looks like the proper way of handling this would be to use the mutable 
[org.apache.http.client.utils.URIBuilder|https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/client/utils/URIBuilder.html]
 all over the place instead of the java.net.URI class.

 

> LinkTool.uri() causes mailto: links to ignore parameters added using param() 
> method
> -----------------------------------------------------------------------------------
>
>                 Key: VELTOOLS-143
>                 URL: https://issues.apache.org/jira/browse/VELTOOLS-143
>             Project: Velocity Tools
>          Issue Type: Bug
>          Components: GenericTools
>    Affects Versions: 2.0
>         Environment: Velocity 1.7, Velocity Tools 2.0
>            Reporter: Christopher Schultz
>            Priority: Minor
>
> This worked in Velocity Tools 1.4.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to