The first line in UrlRewriter.getNewChain(..)
String servletPath = hsRequest.getServletPath();
obtains the servlet path decoded.
EG the url /katalog/jack+%26+jones
is returned as
/katalog/jack+&+jones
My rewrite rule (with decode-using="null")
<rule><from>^/katalog/(.*)$</from><to>/search/?c=y&q=$1&who=$1&where
=</to></rule>
will then rewrite it to
/search/?c=y&q=jack+&+jones&who=tofte+&+jones&where=
The & is interpretted as a parameter deliminator and so jones is not
includes in the q parameter.
The rewritten url should be
/search/?c=y&q=jack+%26+jones&who=tofte+%26+jones&where=
Original issue reported on code.google.com by michaels...@gmail.com on 30 May 2007 at 10:38
Original issue reported on code.google.com by
michaels...@gmail.com
on 30 May 2007 at 10:38