You need to do URL encoding first. Helpers.urlEcnode(str) does this.

On Mar 9, 3:47 pm, "Neil.Lv" <[email protected]> wrote:
> Hi all,
>
>   I have a silly question about the URL rewrite .
>
>   How to let the URL params can contains the & character.
>
>   Here is the code:
>
> ###  The url rewrite.
>             case RewriteRequest(
>                    ParsePath(List("download",  link), "html", _, _),
>                      GetRequest, _) =>
>                    RewriteResponse(List("download"),
>                      Map("link" -> link))
> ###
>
>   When i input this link and get these value that the link param can't
> contains the & 
> char.http://localhost:8080/download.html?link=http://test.com/file.zip&123...
>
>   The link param is:  (that doesn't contains the & char  in the param)
>   S.param("link")
>   =>http://test.com/file.zip
>
>   So how can i get the "&12345678" value from the link param ?
>
>   Maybe the URL rewrite is not correctly ?
>
>   Thanks for any help!
>
> Cheers,
>   Neil

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to