Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2768

WebRequestCodingStrategy.encode renders incorrect url in ajax requests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.4.6
    • None
    • wicket
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              pointbreak Pointbreak
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: