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

Amersand escaped twice for ResourceLink href

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0-beta2, 1.3.0-beta3
    • 1.3.0-rc1
    • wicket
    • None

    Description

      When passing a ValueMap with multiple parameters to ResourceLink, the ampersand for the second and any higher parameters is escaped twice. For example:

      ResourceLink("link", new ResourceReference("largePressImage"), new ValueMap("id=20,idx=0"))

      yields an href of

      ../../resources/org.apache.wicket.Application/largePressImage?idx=0&id=20

      (this will not decode)

      Internally, ResourceLink calls getRequestCycle().urlFor(resourceReference, resourceParameters) at line 126 which gives an escaped URL. Then its Link superclass escapes the ampersand a second time at line 423.

      Attachments

        Activity

          People

            knopp Matej Knopp
            nathan@technically.us Nathan Hamblen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: