WebRequestCodingStrategy.encode renders incorrect url in ajax requests
----------------------------------------------------------------------

                 Key: WICKET-2768
                 URL: https://issues.apache.org/jira/browse/WICKET-2768
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4.6
            Reporter: Pointbreak


Bug introduced by WICKET-2312, see also last comment in that bug for ways to 
reproduce.

The WebRequestCodingStrategy.encode function contains the following code:
                if (url != null && !portletRequest)
                {
                        // We've found the URL and it's mounted.

                        // In the case of Ajax, we don't want to prepend a 
relative path
                        // to the mounted URL. See WICKET-2312.
                        skipRelativePathPrefix = isAjax;
                }

Effect: when in an ajax request creating an url with 
component.urlFor(TargetPage.class, parameters) the generated url does not 
contain the relative path prefix, hence is incorrect.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to